Page 1 of 1

If PDF found,Move PDF file and then delete folder

PostPosted: Wed Dec 28, 2016 1:30 am
by pakiyabhai
I'm trying to create a simple rule where I move the PDF file , then delete the folder . The folder may or may not be empty.

I'm able to successfully move the file , run rule of folder content and then delete empty sub folders. It's the non empty which is troubling me.

Re: If PDF found,Move PDF file and then delete folder

PostPosted: Wed Dec 28, 2016 7:29 pm
by Mr_Noodle
How do you determine which folders to delete? The lack of a PDF file? If so, you can do something like:
Code: Select all
If (all) ar met
    If (all) are met for (all of its sub-files)
        Kind is PDF


To create the nested condition, see this article: https://www.noodlesoft.com/kb/how-to-cr ... onditions/

What the above does is match folders which contain no PDF files. You can tweak that to fit your situation as needed.