Topic "Can WinSCP tell if a remote file is finished being created?"

Author Message
Guest




Can WinSCP tell if a remote file is finished being created? Will it throw an error if the file is not complete or will it try to transfer a partial file?
Explanation: On some platforms the size of a file is zero bytes until it is complete. On other platforms, the size increases as the file is being created. So one solution to this is to create a corresponding little flag file that indicates when a file is complete, so that when the little file is found, then an automated process knows it can FTP the full/complete file. So, I was wondering what WinSCP's various flavors of FTP (non-secure and secure) will do in determining file completion. Will it fail? Will it throw a warning?
Thanks,
Scott
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
That's not about client (WinSCP). That's about server allowing access to incomplete (opened) file. In general on Unix there's no way to determine that file is being written to. On Windows though, opened files may be (and generally are) locked from being access by another process.
Guest




Thanks, Martin. I was thinking that would be the case, but didn't know if you had discovered a secret for determining file completion on all platforms. So, thanks for the confirmation. - Scott
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