Topic "Uploading only New Files"

Author Message
Swindellvc@cofc.edu
[View user's profile]

Joined: 2016-07-08
Posts: 7
Location: Charleston, SC
Here is what my target is
I've used the GUI to upload all the image files to my target site.
Now what I want to do is to only send NEW or updated files to the target site

the ideal execute the vb.net program that would only upload any file added today the source directory, instead of uploading all the files everyday which takes an hour.

Currently I have
'Upload files
Dim MyTransferOptions As New WinSCP.TransferOptions
MyTransferOptions.TransferMode = TransferMode.Binary

Dim transferResult As TransferOperationResult
transferResult = mySession.PutFiles("\\aiken\IDPhotos\*.jpg", "/studentpics/", False, MyTransferOptions)

'Throw on any error
transferResult.Check()

but I'm not sure how to isolate the new files.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Start here:
https://winscp.net/eng/docs/faq_script_modified_files
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