UweKeim / ZetaLongPaths

A .NET library to access files and directories with more than 260 characters length.

Home Page:https://nuget.org/packages/ZetaLongPaths

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about IZlpFileSystemInfo

MustafaDaoud90 opened this issue · comments

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?!

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" 😊

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?

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.