Sorting downloaded files

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

Moderator: Mr_Noodle

Sorting downloaded files Thu Oct 08, 2015 5:39 am • by husmusen
I'm trying to sort downloads into two folders based on file size.

All downloaded files below 1gb in size should be transferred into a tv-shows folder and all files above 1gb into a movies folder.

All other files less than 100mb in size should be sent to the trash.

Any ideas as to how this is set up?
husmusen
 
Posts: 2
Joined: Thu Oct 08, 2015 5:34 am

Re: Sorting downloaded files Thu Oct 08, 2015 11:08 am • by Mr_Noodle
Use the Size attribute in your rule conditions? I'm not sure if there's more to this but if not, just filter on size in your rules.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Sorting downloaded files Mon Oct 12, 2015 3:32 am • by husmusen
I'm currently able to send the small files to trash and then send the remaining files to their respective target folder.

The thing I'm missing is to delete the empty folders that are left at the end of this operation. I even tried to have the last rule set as "any file" > send to trash but it does nothing. I have also tried "kind" is folder and "file size" is 0 bytes, or sub level file/folder = 0. It doesn't do anything.
husmusen
 
Posts: 2
Joined: Thu Oct 08, 2015 5:34 am

Re: Sorting downloaded files Mon Oct 12, 2015 4:24 am • by GBDS
Is the rule to delete all files under 100mb above the other rule to move all files under 1024mb?

Otherwise they will be matched to the TV shows rule and not the delete rule.

A Quick one that might help is that for my TV and Films sorting i have the following set up

IF File name has S0 and is over 100mb in the filename then move to TV (since most eps are tagged S01EXX or S12EXX)
IF File name has S1 and is over 100mb in the filename then move to TV (since most eps are tagged S01EXX or S12EXX)

I take it that the files under 100mb are Rared files that have been extracted and are therfore no longer needed? So for that i would say maybe split the rules between folders and work through the issue step by step,

Etc,

1) In my downloads if file type is Archive move to FOLDER 1, if extension is MKV move to FOLDER 2

2) In My FOLDER 1, if extension is RAR open with 'Extraction Program* (i use Keka so not sure how well it works with others! This will also extract automatically to a specificed folder, lets call this FOLDER 2,
3) in My FOLDER 2, If extension is MKV and has either S0 or S1 in title move to TV shows
If Extension is MKV and over 1024 move to Films,

Then you can set a rule to delete all files in FOLDER 1 (rar files) to be deleted, I have this set to an hour which give it enough time to extract most things,

Hope this helps!
GBDS
 
Posts: 5
Joined: Mon Oct 12, 2015 4:01 am

Re: Sorting downloaded files Mon Oct 12, 2015 12:15 pm • by Mr_Noodle
Try sub-item count is 0. Problem with using size to check if a folder is empty is that sometimes there are invisible files in there (like .DS_Store) that will make it non-zero. Hazel's built-in sub-item count filters those out.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support