Table of Contents

Class PathUtilities

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

A utility class for computing relative paths.

public static class PathUtilities
Inheritance
PathUtilities

Methods

GetExactPath(string)

Gets the exact case used on the file system for an existing file or directory.

GetFileNameWithoutAllExtensions(string)

Removes all extensions from the path, i.e "aaa.png.zip" -> "aaa"

IsPathFullyQualified(string)

Indicates whether given path is a fully qualified path location.

IsPathPartiallyQualified(string)

Indicates whether a given path is not a fully qualified path location.

IsPathValid(string)

Indicates whether a given path contains only characters for path names.

MakeRelativePath(string, string)

Creates a relative path from one file or folder to another.

NormalizePath(string)

Brings the given the path to a common normal form.

NormalizePathSeparators(string)

Replaces alternative separators by regular ones in given path.

TryGetExactPath(string, out string?)

Gets the exact case used on the file system for an existing file or directory.