Home C# .NET System.Io.File.Move() does it guarantee file integrity on transfer?
Reply: 1

C# .NET System.Io.File.Move() does it guarantee file integrity on transfer?

user3585420
1#
user3585420 Published in 2018-01-12 15:02:33Z

For example, if I'm moving a file over FTP, I believe that does not guarantee file integrity, leaving me to do some sort of checking on file sender/receiver ( checksum for example ).

Can somebody tell me if the .net implementation of System.File.Move has any sort of file integrity checking if I'm moving a file across a network ( local network mind you, but a network still.. ). Checksum or anything?

Wazner
2#
Wazner Reply to 2018-01-12 15:10:07Z

Depends on the protocol used to move the file.

Microsoft SMB protocol (most common protocol) does guarantee file integrity. It also supports file locking, meaning that someone else can not modify or partially read the file while the file is being moved/uploaded over the network.

Source: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365233(v=vs.85).aspx

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.298072 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO