Page 1 of 1

Check for files in variable folder

Posted: Mon Apr 03, 2017 3:46 pm
by Indy2
Is it possible for Switch to check for files in a folder (data) where the parent folder (xxxxxx) is variable?

Ex. the root folder is "jobs", xxxxxx is the unique order-id and "data" the folder to be checked.
/jobs/xxxxxx/data

Re: Check for files in variable folder

Posted: Mon Apr 03, 2017 5:52 pm
by freddyp
Have a look at https://www.enfocus.com/en/appstore/product/inject-lite. This app can check if a certain file/folder exists ("Assert exists") and then you can inject it.

Re: Check for files in variable folder

Posted: Tue Apr 04, 2017 4:24 pm
by Indy2
@freddyp
Perhaps I should clarify this, what I would like switch to do is pick up files from every /jobs/xxxxxx/data folder (source folder).
With a check every x minutes or so for new folder and files.

The data folder always exists as it is created automatically along with the order.
It seem Inject Lite can see if a variable target folder exists, but I'm looking for the source folder.

Re: Check for files in variable folder

Posted: Thu Apr 06, 2017 5:57 pm
by freddyp
That sounds like "Submit hierarchy" starting at the root folder /jobs.