Hi
Does anyone know if you can move a directory based on a wildcard search? I am trying to look for directories named 2016_04_13* for example and move them to another directory.
Thanks
Andrew
Hi Matthew,
I would use a “fileset define” action to define the list of directories to move. This can be done by setting the “include patterns | filespec” to “2016_04_13*” then selecting the “directories only” option.
This will then give you a fileset that contains the name of the directories matching the filespec. You can then use a fileset iterator to loop through each directory and move it to the location you desire.
I assume you will want to extract parts of the directory name to know the location to move the folder to. For this I suggest using the “Path Manipulation” action. It can take a path and perform a number of actions on that path. Also the “string replace” function is good for renaming parts of a folder name if needed.