Topic "SynchronizeDirectories, know if each file was matched or not"

Author Message
dave007
[View user's profile]
Donor
Joined: 2014-07-01
Posts: 1
Location: Florida
Hey WinSCP Folks,
Awesome tool, $9 happily sent. Keep it up!

I'm using the Session.SynchronizeDirectories method in PowerShell 3 to sync a folder to a remote site.
I have registered both the FileTransferProgress and
FileTransferred events and get progress back, but don't see a way to distinguish between a file that's uploaded, and a file that is matched and thus not uploaded.
I want to know so I can display progress like

File 1.. match found, not uploaded
File 2.. no match file uploading, (100%) complete
...

Can you tell me how I can distinguish between these two cases in the event handlers?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
To learn if the file was transferred, use Session.FileTransferred event:
https://winscp.net/eng/docs/library_session_filetransferred

Thanks for your donation!
_________________
Martin Prikryl
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