VFSDirectoryPath.md

January 20, 2026 Ā· View on GitHub

Atypical.VirtualFileSystem.Core

Atypical.VirtualFileSystem.Core

VFSDirectoryPath Class

Represents a directory in the virtual file system. A directory is a first-class citizen in the virtual file system. It can contain files and other directories.

public record VFSDirectoryPath : Atypical.VirtualFileSystem.Core.VFSPath, System.IEquatable<Atypical.VirtualFileSystem.Core.VFSDirectoryPath>

Inheritance System.Object šŸ”’ VFSPath šŸ”’ VFSDirectoryPath

Derived
↳ VFSRootPath

Implements System.IEquatable<VFSDirectoryPath>

Constructors
VFSDirectoryPath(string)Initializes a new instance of the VFSDirectoryPath class. The file path is relative to the root of the virtual file system.
Methods
ToString()Returns a string that represents the current object. The string representation of the directory path is the path itself.
Operators
implicit operator VFSDirectoryPath(string)Implicit conversion from string. This allows you to use a string as a VFSDirectoryPath.
implicit operator string(VFSDirectoryPath)Implicit conversion to string This allows you to use a VFSDirectoryPath as a string.