Finding sub folders with the same name inside a Google Drive folder

What are you trying to achieve?

Hello. Here’s what I’ve been trying to do but couldn’t figure out. Any help would be sooooo appreciated.

I want to create an automation that will run inside folder “X” on my Google Drive.

I want this automation to get triggered whenever a new folder is created within folder “X”.

If the new folder has the same exact name as another folder inside folder “X”, I want the files from the new folder to move inside the old folder with the same name.

After that, the new folder could be deleted.

If there is no other folder inside folder “X” with the same name, then nothing should happen.

Steps taken so far

The first modules I used are Watch folders and then Search for files/folders. Initially, I thought I understand how all steps are supposed to flow, but now nothing makes sense anymore. I haven’t used Make before and I don’t know how to set this up. And I couldn’t find a tutorial for what I’m looking for. Thank you

Screenshots: scenario setup, module configuration, errors

Hi @hive_romania You are doing great , now in search step use again the name of the folder from the first step and set the filter to search for exact folder names ,
it will return you the output in the folder , next module is to list files from that folder and then you have to put a filter after that , folder ID not equal to the folder ID from the first step , that make sure that same folder will not be process again and it will look for other folders with same name .

then List files from New folders
then Move files from New to Old Folder

then once all the files are moved

delete the New Folder

3 Likes

Hi @CodexSolution This is so helpful!!! Thank you so so much for taking the time to walk me through this. It makes sense now. Thank you again!

1 Like