Page 1 of 1

Auto UnRARing files

PostPosted: Sun Sep 16, 2012 12:25 pm
by ajaffarali
I'm kinda new to Noodle and am looking into taking things step by step. The first thing I want to do is to watch a folder and if any files/sub directories are added that have a rar archive and then unarchive this.

To do this, the rule I have setup os that if "any"of the condition met for "any of its sub-files or folders"
"extension" "is" "rar:
Do the following on matched file or folder"
Unarchive


However, when I add a folder to this directory that contains a rar file (along with .01, .02 etc. files), the log reports

"hazelworker [7333] Could not identify archive type fr file: /foldername"

What am I doing wrong here?

Re: Auto UnRARing files

PostPosted: Mon Sep 17, 2012 3:29 pm
by Mr_Noodle
You are matching the folder containing the rar, not the rar file itself. Do not use the sub-files target. Instead, check out the article at the top of the forum about going into subfolders.

Re: Auto UnRARing files

PostPosted: Tue Sep 18, 2012 12:37 am
by ajaffarali
Thanks- Gave that a shot as well so now I have the following:

If ANY of the following conditions are met for THE FILE OR FOLDER BEING MATCHED
KIND IS FOLDER

Do the following to the matched file or folder

RUN RULES ON FOLDER CONTENTS
UNARCHIVE

Still can't get it to work. What am I doing wrong?

Re: Auto UnRARing files

PostPosted: Tue Sep 18, 2012 1:57 pm
by Mr_Noodle
Please read the article again. See that picture with the red X through it and the heading saying not to do this? You are doing this.

Re: Auto UnRARing files

PostPosted: Tue Sep 18, 2012 3:13 pm
by ajaffarali
Sorry- just not seeing where I'm going wrong. I even downloaded the sample rule attached in the post you're linked which is set up as:

If ALL of the following conditions are met for THE FILE OR FOLDER BEING MATCHED
KIND IS FOLDER
Do the following to the matched file of folder:
RUN RULES ON FOLDER CONTENTS
UNARCHIVE

All I did was add UNARCHIVE to the sample rule you have attached and still not getting it to work.

Re: Auto UnRARing files

PostPosted: Tue Sep 18, 2012 4:36 pm
by Mr_Noodle
You are combining the logic of two different rules. The rule you have is matching a folder, and you are telling it to unarchive, which doesn't make sense for folders. You need to split it into two rules, one that operates on folders and one that operates on the files within.

Re: Auto UnRARing files

PostPosted: Wed Sep 19, 2012 2:36 am
by ajaffarali
Ahh..So that is the trick. To do break it into two rules.
Did that and it's working just fine now. Thanks for your help- appreciate it.