Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Differences compared to System.IO

Jeffrey Jangli edited this page May 25, 2018 · 6 revisions

Differences compared to System.IO

A list of AlphaFS methods that behave slightly different than System.IO.


System.IO.Directory.Exists()
System.IO.Directory.Exists() internally throws a System.ArgumentException: Illegal characters in path when encountering the long path notation: \\?\ and returns False, even if the folder exists. AlphaFS returns True when the folder exists.
This also applies to System.IO.Path.GetFullPath()


System.IO.Path.GetFullPath()
Input Path: \\?\GLOBALROOT\device\harddisk0\partition1\
System.IO: Caught [System.IO] System.ArgumentException: [Paths that begin with \\?\GlobalRoot are internal to the kernel and should not be opened by managed applications.
AlphaFS: Returns Input Path: \\?\GLOBALROOT\device\harddisk0\partition1\