Topic "growing file behavior"

Author Message
bcarter27
[View user's profile]

Joined: 2012-04-05
Posts: 2
We are looking to script WinSCP to get files from our SFTP server on a recurring schedule (every 2 minutes). If another user at a different location is simultaneously uploading a file and that file is growing, how does WinSCP handle that? Will it wait for the file to finish growing? Or will it proceed with downloading the incomplete file? (and then fail the deletion of the incomplete source file?)

Thank you in advance for any info.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
It's rather a question for your SFTP server provider. But in general the answer would be that it will download the incomplete file.

You can make the user uploading the file upload it to a temporary name, either explicitly or automatically:
http://winscp.net/eng/docs/resume#automatic
http://winscp.net/eng/docs/ui_pref_resume
and make sure you won't be downloading the temporary files (using exclusion mask).
_________________
Martin Prikryl
bcarter27
[View user's profile]

Joined: 2012-04-05
Posts: 2
We aren't able to control the application that users will be uploading files with. Thanks for the suggestions though!
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