0

I'm using WinSCP .NET assembly library to perform some SFTP operations - downloading files from SFTP location.

Do you know if method Session.GetFiles of the WinSCP library checks if file is not corrupted before downloading it - I mean the situation when someone uploads file to given folder and in the same time the WinSCP library wants to get files from this location?

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
Snorlax
  • 787
  • 2
  • 9
  • 22

1 Answers1

0

No it does not. There's generally no way to test, if a file is being written to, over an SFTP protocol.


File locking is supported by few SFTP servers only. Notably it is not supported by the most widespread SFTP server, the OpenSSH.

See also:

Community
  • 1
  • 1
Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992