Monitor folders - remote delete

jan.itor

2009-05-20 18:07:05

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

mb

2009-05-20 18:35:06

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

jan.itor

2009-05-21 20:44:42

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

mb

2009-05-21 21:36:51

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

Regards,
Mat

jan.itor

2009-05-21 23:24:24

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

mb

2009-05-21 23:27:20

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

jan.itor

2009-05-22 10:11:23

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

mb

2009-05-22 12:04:49

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