Provides path manipulation and utility extension methods for VFS paths.
public static class VFSPathExtensionsInheritance System.Object 🡒 VFSPathExtensions
| Methods | |
|---|---|
| ChangeExtension(this VFSPath, string) | Changes the extension of a VFS path. |
| Combine(this VFSDirectoryPath, string) | Combines a directory path with a relative path. |
| GetAncestors(this VFSPath) | Gets all ancestor paths from the current path up to the root. |
| GetDepth(this VFSPath) | Gets the depth of the path (number of directory levels from root). |
| GetExtension(this VFSPath) | Gets the file extension from a VFS path. |
| GetFileNameWithoutExtension(this VFSPath) | Gets the file name without extension from a VFS path. |
| GetParent(this VFSPath, int) | Gets the parent directory at the specified level up. |
| GetRelativePath(this VFSDirectoryPath, VFSPath) | Gets the relative path from one directory to another. |
| HasAnyExtension(this VFSPath, string[]) | Checks if the path has any of the specified extensions. |
| HasExtension(this VFSPath, string, bool) | Checks if the path has a specific extension. |
| IsAncestorOf(this VFSPath, VFSPath) | Checks if a path is a descendant of another path. |
| IsAtDepth(this VFSPath, int) | Checks if the path is at a specific depth. |
| IsDirectChildOf(this VFSPath, VFSPath) | Checks if a path is a child (direct descendant) of another path. |
| MatchesGlob(this VFSPath, string) | Checks if the path matches a glob pattern. |
| Normalize(string) | Normalizes a path by removing redundant separators and resolving relative components. |