Topic "Unable to remove files during directory syncronization"

Author Message
jbruett
[View user's profile]

Joined: 2015-03-11
Posts: 3
Location: NJ, USA
version : 5.70 of the .net library
working previously : Not tried
Windows Version : 8.1
Transfer protocol : SFTP
Gui/Automation: Automation

Issue :

Using the .net library to automate directory synchronization. Attempting to download files from a remote server. Files are downloaded successfully but are not deleted even though I have the removefiles flag set to true.
sessionlog.txt (9.89 KB) Private file

Description: this is the session log

OutgoingSync.txt (5.81 KB) Private file

Description: This is the script I've written

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
You misunderstand what the removeFiles parameter does.
It's for deleting obsolete files, not for deleting transferred files.

You are probably looking for this:
http://winscp.net/eng/docs/faq_delete_synchronized_files
_________________
Martin Prikryl
jbruett
[View user's profile]

Joined: 2015-03-11
Posts: 3
Location: NJ, USA
Martin

Thanks for clarifying the delete functionality, I understand that now. Can you give a better description of an obsolete file. I have read through the synchronizefiles function definition page multiple times and it's not clear to me what that really means.

Thanks

JB
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License