I have a current project that needs to copy a set of directories to another directory. The directories needing to be copied are all empty. I have tried to use a file listing and setting the recursive flag to true, but since the directories are all empty, nothing is copied. Can you point me in the right direction as to what I should be doing in order to copy these directories?
FileSets do not include directory listings. They only include files. So when a directory is empty, nothing is in the FileSet. The copy task is currently directed towards copying files and only creates folders when a file needs to be copied.
We are considering this for a future release. However there I am not sure of when. If this is critical, there may an alternative. Please call in to discuss.
We were able to do a work around in Go Anywhere. We ended up writing an external batch file that copied the names of the folders we were looking to create to an external file. We read this file and used the last instance of method to find the last slash in each of those folder paths. The substring method was then used to pull the last node of the path. Using this method we were able to create the set of folders we needed