Page 1 of 1

Find Specific Folder Name inside Parent Folder, Copy Content

PostPosted: Mon Jan 30, 2017 9:02 pm
by patjbrown1983
Hi There,

Im trying without success to create the following workflow and couldn't find any suggestions here or around the net. Does anyone know how to do the following

1. In watch folder, find any folder at any subfolder depth called _DNGS

2. Copy contents of matched folder _DNGS to new location with same folder name is _DNGS parent folder

Ive attached a dropbox link of screen cap that might better explain what im trying to achieve. Appreciate any advice!

https://www.dropbox.com/s/ir5txkfwmu1o5 ... g.jpg?dl=0

Regards,

Pat.

Re: Find Specific Folder Name inside Parent Folder, Copy Con

PostPosted: Tue Jan 31, 2017 12:29 pm
by Mr_Noodle
Read the sticky article at the top of this forum about going into subfolders. The rule described there IN ADDITION TO whatever rules you create to copy the files should do it.

The tricky part is the parent folder's name. First, read up on nested conditions here: https://www.noodlesoft.com/kb/how-to-cr ... onditions/

Using that, you would do something like:
Code: Select all
If (all) are met
    If (all) are met for (the enclosing folder)
        Name matches (•parent name)


where (•parent name) is a custom text attribute matching "anything". What that does is capture the name of the parent folder into that custom attribute. You can then use that in the Rename pattern.