Topic "SynchronizeDirectories - track changes"

Author Message
creieru
[View user's profile]

Joined: 2014-06-02
Posts: 2
Location: belgium
Hello,
I'm using SynchronizeDirectories method and I'm interested in a way to detect if the local file already exists before start downloading it (I need to send notifications if syncronize method tries to download an existing file)

Thanks.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
You cannot detect with with Session.SynchronizeDirectories.
But if it's just about a single file, you can make use of this example that basically synchronizes a file manually:
http://winscp.net/eng/docs/library_session_getfiles#example
_________________
Martin Prikryl
creieru
[View user's profile]

Joined: 2014-06-02
Posts: 2
Location: belgium
Thanks Martin for reply...and no, it's not only one file.
But I figured out a solution by using [FileTransferred] event, and check [CreationTime] property of the file transferred.
It seems that it will to the trick.
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