Check for files in variable folder

Post Reply
Indy2
Newbie
Posts: 13
Joined: Mon Jun 22, 2015 12:52 pm

Check for files in variable folder

Post 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
freddyp
Advanced member
Posts: 413
Joined: Thu Feb 09, 2012 3:53 pm

Re: Check for files in variable folder

Post 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.
Indy2
Newbie
Posts: 13
Joined: Mon Jun 22, 2015 12:52 pm

Re: Check for files in variable folder

Post 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.
freddyp
Advanced member
Posts: 413
Joined: Thu Feb 09, 2012 3:53 pm

Re: Check for files in variable folder

Post by freddyp »

That sounds like "Submit hierarchy" starting at the root folder /jobs.
Post Reply