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

Path Retrieval

Jeffrey Jangli edited this page Jan 31, 2015 · 33 revisions

In the AlphaFS unit tests, path results are compared against System.IO to ensure the highest compatibility with .NET.

AlphaFS should of course match with .NET as much as possible, although in some cases it will not. This is due to .NET not being able to handle the long path format in a consistent way.

For example: System.IO.Path.GetPathRoot()

Input Path: [\\SERVER001\Share]
System.IO : [\\SERVER001\Share]
AlphaFS   : [\\SERVER001\Share]

# Use UNC long path format.
Input Path: [\\?\UNC\SERVER001\Share]
System.IO : [\\?\UNC]
AlphaFS   : [\\?\UNC\SERVER001\Share]

Path.GetFullPath() Path.GetPathRoot()

Clone this wiki locally