Page 1 of 1

Move only zip files with the same folder structure

PostPosted: Sun Mar 04, 2018 6:55 am
by francisco
Hi suport team,

I have a dropbox folder, inside there are many subfolders with zip content.
I want to move only the zip files with the same folder structure in the destination folder.
But the subfolder structure remains after the rule in the source folder, because I just want to move the zips files.

Like this
image before the rule: https://cl.ly/pwKI
image after the rule: https://cl.ly/pwAo

I made this:
1. To copy the same folder structure I did a rule to copy the subfolders and the zip content.
here the rule: https://cl.ly/pw0E
2. Now I want to delete all the zips files that are in the source subfolders.
because I want to free space in my dropbox

Is possible to run another rule to delete the zips files in the source content after run the first rule that I did?

Thank you for your time.
Francisco Ramírez

Re: Move only zip files with the same folder structure

PostPosted: Mon Mar 05, 2018 11:52 am
by Mr_Noodle
Is there a reason why you don't use a Move operation instead?

Without using a script, I'm not sure if you can do this after the fact as it requires special logic to correlate the source with the destination.

Re: Move only zip files with the same folder structure

PostPosted: Mon Mar 05, 2018 4:51 pm
by francisco
Hi thank you for your answer,

I have one folder for dropbox with about 30 subfolders, in every subfolder are zips.
I need always all the subfolders inside the dropbox folder (the source), because every subfolder store a backup
for wordPress, every subfolder is a backup of a website, If I move these subfolders, my backup plugin doesn't going to find the destination folder to upload the zip backup file.

For this reason the "move" action doesn't works here because Hazel move all the subfolders with zips inside.

At this moment the only way that I found is created a "move" rule for each subfolder (30 rules), this works well because Hazel move only the zips.

Is there a way to do all this work with one rule in the dropbox folder?

Re: Move only zip files with the same folder structure

PostPosted: Tue Mar 06, 2018 10:22 am
by Mr_Noodle
Search for subfolders in the manual. That shows how to get Hazel to go into subfolders. You can then have a separate rule to move the zip files. In the options for the move, you can specify whether to copy over the folder structure as well.