PDA

View Full Version : Trying to delete files... not working.


dataflux
09-12-2007, 09:27 AM
I'm using the copy action to delete files. I want to delete all files ending in .complete from all of the subdirectories of the specified directory. In the copy tab of my properties, I have left the Source Folder empty, and specified the root of the target directory in Dest folder. In the include list, I have one line which is *.complete. In the check boxes at the bottom, everything is unchecked except Delete destination files and folders... Everything else in this action is default.
When I run this action, I get:
Source Folder cannot be empty
Step 'Delete .complete files' failed

Any ideas?

dataflux
09-12-2007, 09:31 AM
I just realized that in the new version, there is now a Delete Files action... Which works fine.

kinook
09-13-2007, 02:10 PM
In order to delete files with the Copy Files action, you need to check the 'Ignore non-existent or blank Source folder' on the Options tab.
http://www.visualbuild.com/Manual/copyfilesactioncopytab.htm