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

Author Message
[View user's profile]
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?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
To learn if the file was transferred, use Session.FileTransferred event:

Thanks for your donation!
Martin Prikryl

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License