apologies for the silly question, but I have been looking for (unsuccessfully) anything that will "automatically" delete a file from the ftp server after it has been successfully transferred to my local machine. Is there such a setting?
I am currently having to transfer files, then use a second process to delete them after, and its becoming tiresome :)
Advice greatly appreciated.
Chris
Delete file after transfer
-
- Site Admin
- Posts: 2072
- Joined: Tue Sep 29, 2009 6:09 am
Re: Delete file after transfer
OK, you can add the following Lua script into the event "OnFileDownloaded":
Code: Select all
local filepath = "%PathName"
if c_FileExist(filepath) then
c_RemoveFileDir(filepath)
end