I'm doing the following:
Monitor a project directory to upload all changed data to the server.
SmartFTP should delete all files that don't exist in the local directory
This works fine but there is a little problem:
The remote directory also contains special folders like cgi-bin which would also get deleted.
How can I tell SmartFTP to leave these folders?
You can use the transfer filter feature. Go to the Transfer->Filter dialog in the favorite properties. The transfer filter SHOULD apply to delete operations as well.
I already tried that.
For testing I created a folder "dontdelete" in the remote folder.
Now I activated the custom filters for the favorite, set them to "Exclude" and added the following filter:
Type > WildChar
Value > *dontdelete*
Scope > any
But the folder still gets deleted.
Also a RegExp .* fails.
Am I doing something wrong?
How does your transfer queue item look like? Whats the source and destination path? and in what folder is the dontdelete folder?
Sync: One Way with Delete
Source: Local: C:\temp\myfolder
Destination: Remote /temp/destination
Process and Monitor File/Folder
The local folder "myfolder" is empty.
The remote folder "destination" only contains the "dontdelete" directory.
The filter does not apply in this case. It only applies to the source. E.g. the dontdelete folder would not get transferred if one exists in the source.
ok, I tried the following workaround but had no success:
I created the folder that shouldn't get delete also in the local file system.
Then I excluded it by adding a filter.
Unfortunately, it still gets deleted.
Do you have any plans to improve this behaviour? Or would it be possible to use the scripting feature of SmartFTP Pro to get the functionality I'm looking for?