UweKeim / ZetaLongPaths

A .NET library to access files and directories with more than 260 characters length.
https://nuget.org/packages/ZetaLongPaths
MIT License
141 stars 28 forks source link

Question about IZlpFileSystemInfo #34

Closed MustafaDaoud90 closed 3 years ago

MustafaDaoud90 commented 3 years ago

I need to know if the IZlpFileSystemInfo same as System.IO.FileSystemInfo?

When using in System.IO FileSystemInfo BLFileInf = (FileSystemInfo)(new FileInfo(sBlockFile)); in zeta IZlpFileSystemInfo BLFileInf = (IZlpFileSystemInfo)(new ZlpFileInfo(sBlockFile)); above is same?!

UweKeim commented 3 years ago

It is technically not the same but should be same enough for most of the use cases.

So my assumption is that the answer is: "Yes" 😊

MustafaDaoud90 commented 3 years ago

Thanks a lot for the fast reply,

in System.IO.FileSystemInfo contain Refresh() method, I need to use it but in IZlpFileSystemInfo not found what is the alternative to use?

UweKeim commented 3 years ago

I'll add the Refresh to the interface.

In contrast to the original System.IO classes, my classes do not cache values. So the Refresh() is merely to be similar to the original classes, but it does not have an actual implementation as of now. You could simply omit calling it at all.