Page 1 of 1

Sort into Subfolders and put them into one specific folder

PostPosted: Tue Feb 02, 2021 5:18 pm
by xandersaru
Hi Mr Noodle,

I got a difficult task I have a parent folder in which are some other folders nested . I want all subfolders that contain music files to stay in that order structure as it is but the subfolders which only contain empty folders should be sorted into one specific subfolder which is excluded from the rule set.

so that the folder which has the name empty (leer) contains all parent subfolders containing empty subfolders.

currently I did achieve all that only that the empty sub subfolders end up in the parent subfolder (empty /leer) which is not supposed to happen I hope you can help

by the way I tried "...name is not" already and it did not work

Re: Sort into Subfolders and put them into one specific fold

PostPosted: Wed Feb 03, 2021 11:15 am
by Mr_Noodle
I'm not sure if I follow. Can you post a specific example?

Re: Sort into Subfolders and put them into one specific fold

PostPosted: Wed Feb 03, 2021 11:52 am
by xandersaru
when I get home I will post you a link to dropbox containing my ruleset and maybe a link with a picture to the folder construction. Maybe then you can see what I am trying to do, it's kind of hard to explain without seeing ;)

Re: Sort into Subfolders and put them into one specific fold

PostPosted: Wed Feb 03, 2021 3:19 pm
by xandersaru
Hi again, i postet a link to a pic of the folder structure and a link to my rule

I hope that can explain what i want to do.

my goal is to sort all empty parentfolders into parentsubfolder "!!!!!leer " but the empty subfolders in the parentsubfolder should stay where they are and the ones contain mp3s should stay untouched in parent folder

so parent folder is named 02 (this contains all folders)

sub layer1 contains a bunch of folders some are filled with mp3s, some are empty, and some contain other subfolders

Sub layer 2 should stay untouched

so all sorting is on sub layer 1 mp3 stays in parent 02 - all other in leer but don't touch sub layer 2




https://www.dropbox.com/s/7ue9j3e6gqisx42/besser%20.png?dl=0
https://www.dropbox.com/s/xbq6vxie8x0pwnv/02.hazelrules?dl=0
https://www.dropbox.com/s/gn825btxkml1m2t/leer%20sort.png?dl=0

Re: Sort into Subfolders and put them into one specific fold

PostPosted: Thu Feb 04, 2021 5:33 am
by xandersaru

Re: Sort into Subfolders and put them into one specific fold

PostPosted: Thu Feb 04, 2021 11:37 am
by Mr_Noodle
It looks like nothing is being sorted. That's because your rules are in the wrong order. Your second rule will never match because all folders are matched by the first rule. You need to either swap those rules or add a "Continue" action to the first one.

Re: Sort into Subfolders and put them into one specific fold

PostPosted: Thu Feb 04, 2021 1:17 pm
by xandersaru
well yeah but is the rest ok to achieve what I am looking for ? No it's not - right ?

Re: Sort into Subfolders and put them into one specific fold

PostPosted: Fri Feb 05, 2021 11:52 am
by Mr_Noodle
Did you try my suggestion?