Class PathUtils
Inherited Members
Namespace: PoeShared.Scaffolding
Assembly: PoeShared.dll
Syntax
public static class PathUtils
Properties
Name | Description |
---|---|
IsLinux | |
IsWindows |
Methods
Name | Description |
---|---|
AddExtensionPrefix(string, string) | Adds a specified prefix to the extension of a file path. |
ExpandPath(string, string) | Expands a relative path to an absolute path based on a provided root. |
GenerateValidName(string, Func<string, int, string>, Predicate<string>) | Generates a valid path name by mutating a base path name. |
GenerateValidName(string, Predicate<string>) | Creates a valid path name by appending a number to a base path name. |
GetDepth(string) | Calculates the depth of a directory path. |
GetFileNameWithoutExtension(ReadOnlySpan<char>) | |
GetFileNameWithoutExtension(string) | Gets the file name from the specified path string without the extension. |
GetLongestCommonPath(IReadOnlyList<string>) | |
GetLongestCommonPath(IReadOnlyList<string>, char) | |
GetRootDirectory(IReadOnlyList<string>) | |
GetRootDirectory(string) | Determines the root directory of a given path. |
IsDirOrSubDir(string, string) | Checks if a given path is a directory or a subdirectory of another. |
IsParentDir(string, string) | Checks if a given path is a parent directory of another. |
IsSamePath(FileSystemInfo, FileSystemInfo) | Checks if the two provided paths are the same. |
IsSamePath(string, string) | Checks if the two provided paths are the same. |
IsSubDir(string, string) | Determines if a given path is a subdirectory of another path. |