Exclude Folders in a File List?
Posted: Wed Mar 03, 2010 4:46 pm
How would I go about excluding specific folders in a file list? Let me explain what I'm trying to do:
I have a project that does an inventory of our FTP site. It does this by using a simple "file list" action to generate a list of every file on the FTP site. I set it to the root folder of the FTP site and set its "recursive" value to TRUE. This successfully generates a file list containing all files. However, there are some folders I do not need reported. I've tried using a wildcard filter to exclude the folder names, but had no luck, it still reported files in those folders. How could I tell the recursive file list to skip over certain folders?
I know I could set this up a different way, having a separate task to inventory each folder that I want (and simply don't create a task for the folders I don't want). However, due to the number of folders we use, this would be a time-consuming task to implement and update should we ever add/change/delete a folder. I assumed excluding folders would be simple. That'll teach me to assume!
Any help is greatly appreciated. Thanks.
I have a project that does an inventory of our FTP site. It does this by using a simple "file list" action to generate a list of every file on the FTP site. I set it to the root folder of the FTP site and set its "recursive" value to TRUE. This successfully generates a file list containing all files. However, there are some folders I do not need reported. I've tried using a wildcard filter to exclude the folder names, but had no luck, it still reported files in those folders. How could I tell the recursive file list to skip over certain folders?
I know I could set this up a different way, having a separate task to inventory each folder that I want (and simply don't create a task for the folders I don't want). However, due to the number of folders we use, this would be a time-consuming task to implement and update should we ever add/change/delete a folder. I assumed excluding folders would be simple. That'll teach me to assume!
Any help is greatly appreciated. Thanks.