Moving structured Files + leaving original folder structure

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

Moderator: Mr_Noodle

How do I
>MOVE files in their original folder structure
WHILE
>Preserving the original folder structure (which will then be empty)
?
rellimbor
 
Posts: 4
Joined: Fri Jan 24, 2014 9:59 pm

Can you provide an expanded description of what you are trying to do exactly?
Mr_Noodle
Site Admin
 
Posts: 11879
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

I have an existing hierarchical folder structure containing files. Say:
ROOT
FOLDER 1
file1
file2
SUBFOLDER 1
file3

I want to:
1. MOVE all of that to a different root folder
BUT
2. LEAVE just the original folders in the original location
-SAME THING AS-
1. COPY all of that to a different root folder
AND
2. DELETE all the files

so I would end up with:
ROOT
FOLDER 1
SUBFOLDER 1

and
NEWFOLDER
FOLDER 1
file1
file2
SUBFOLDER 1
file3

CLEAR?
THANK YOU.
rellimbor
 
Posts: 4
Joined: Fri Jan 24, 2014 9:59 pm

In that case, you'll need to have Hazel go into subfolders and process the files within. See the sticky article at the top of this forum on how get Hazel to do that.

From there, create the rule to match the files and move them. In the move action, you can set it to copy over the folder structure. Set it to copy from the monitored folder.
Mr_Noodle
Site Admin
 
Posts: 11879
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

EVERYTHING WORKS, except it doesn't place the folder structure into a folder with the same name as the Monitored folder. How do I make Hazel copy into a folder with the same name as the Monitored folder?

EXAMPLE
The monitored folder is Folder 1:
...
FOLDER 1
file1
file2
SUBFOLDER 1
file3

When it moves, I end up with:
...
file1
file2
SUBFOLDER 1
file3

RULES USED
1. RUN RULES ON FOLDER CONTENTS (per your sticky article)
2. IF date last modified is before this year
and
IF kind is not folder
THEN
move to folder XXX (options: copy folder structure from monitored folder)
[img][/Users/miller/Desktop/rule2a.tiff]
[img][/Users/miller/Desktop/rule2b.tiff]
rellimbor
 
Posts: 4
Joined: Fri Jan 24, 2014 9:59 pm

The images aren't coming through. You need to upload them to some service where you can then get a public link to them.

That said, in your example, it is correct. If you are monitoring FOLDER 1, then the files at the destination will be at the top level. If you want the destination files under FOLDER 1, you need to either (a) monitor the folder that contains FOLDER 1 or (b) create FOLDER 1 at the destination and use that as the destination of the move.
Mr_Noodle
Site Admin
 
Posts: 11879
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Got it—thanks!
rellimbor
 
Posts: 4
Joined: Fri Jan 24, 2014 9:59 pm


Return to Support