C# Class System.IO.PathHelper

Wrapper to help with path normalization.
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Methods

Méthode Description
GetFullPathName ( string path, System.Runtime.InteropServices.StringBuffer fullPath ) : void
GetInputBuffer ( System.Runtime.InteropServices.StringBuffer content, bool isDosUnc, System.Runtime.InteropServices.StringBuffer &buffer ) : uint
IsDosUnc ( StringBuffer buffer ) : bool
Normalize ( string path, bool checkInvalidCharacters, bool expandShortPaths ) : string

Normalize the given path.

Normalizes via Win32 GetFullPathName(). It will also trim all "typical" whitespace at the end of the path (see s_trimEndChars). Will also trim initial spaces if the path is determined to be rooted. Note that invalid characters will be checked after the path is normalized, which could remove bad characters. (C:\|\..\a.txt -- C:\a.txt)

TryExpandShortFileName ( StringBuffer outputBuffer, string originalPath ) : string