Move only zip files with the same folder structure

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

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
francisco
 
Posts: 2
Joined: Sun Mar 04, 2018 5:06 am

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.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

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?
francisco
 
Posts: 2
Joined: Sun Mar 04, 2018 5:06 am

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.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support