Monitor folders - remote delete

Hi,
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?

Thanks.

jan.itor

Hello ...

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.

Regards,
Mat

Hi Mat,
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?

jan.itor

How does your transfer queue item look like? Whats the source and destination path? and in what folder is the dontdelete folder?

Regards,
Mat

Hi.
Tab General
Sync: One Way with Delete
Operation: Copy
Source: Local: C:\temp\myfolder

Destination: Remote /temp/destination

Tab Monitor
Process and Monitor File/Folder

The local folder "myfolder" is empty.
The remote folder "destination" only contains the "dontdelete" directory.

Regards,
jan.itor

Hello ..

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.

Regards,
Mat

Hi,
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?

Thanks.
jan.itor

I recommend to use the FTP Library to automate it:
https://www.smartftp.com/ftplib