How to exclude certain subfolders and files from processing?

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

Moderator: Mr_Noodle

I have the following directory structure:

Code: Select all
Podcasts
    Podcast 1
       Backlog
       Archive
    Podcast 2
       Backlog
       Archive
    ...
    Podcast n
       Backlog
       Archive

I would like to process the files in all the "Podcast 1, 2,.." folders and their respective "Backlog" folders, but ignore the "Archive" folders and their files.

I have read the sticky about going into the subfolders, but I cannot figure out how to set up the rules to ignore the "Archive" folders. A separate rule to ignore all folders named "Archive" (the first after "Run rules on subfolders") seems to have no effect.

I would be grateful if someone could point me in the right direction.
WorkflowsGuy
 
Posts: 30
Joined: Thu Jul 04, 2013 3:55 pm

Adding "Name is not Archive" to the subfolder rule should help. If you want to go the route of using your ignore rule, you need to put it before the subfolder rule, not after.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Thank you Mr. Noodle. I have finally got it working.

For the benefit of others who might come across such a problem, here is my working rule:
Code: Select all
For folder "Podcasts"

Rule 1:
If all of the following conditions are met
    Kind is Folder

Run rules on folder contents

Rule 2:
If all of the following conditions are met
    If all of the following conditions are met for: its enclosing folder
        Name is not "Archive"
    Kind is Document
    Extension is "mp3"

Move to folder "Temp"
WorkflowsGuy
 
Posts: 30
Joined: Thu Jul 04, 2013 3:55 pm


Return to Support