VFSNode.md

January 20, 2026 · View on GitHub

Atypical.VirtualFileSystem.Core

Atypical.VirtualFileSystem.Core

VFSNode Class

Represents a node in a virtual file system. A node can be a file or a directory.

public abstract record VFSNode : Atypical.VirtualFileSystem.Core.Contracts.IVirtualFileSystemNode, System.IEquatable<Atypical.VirtualFileSystem.Core.VFSNode>

Inheritance System.Object 🡒 VFSNode

Derived
DirectoryNode
FileNode

Implements IVirtualFileSystemNode, System.IEquatable<VFSNode>

Constructors
VFSNode(VFSPath)Initializes a new instance of the VFSNode class. This constructor is used by derived classes.
Properties
CreationTimeGets the creation time of the node.
IsDirectoryIndicates whether the node is a directory.
IsFileIndicates whether the node is a file.
LastAccessTimeGets the last access time of the node.
LastWriteTimeGets the last write time of the node.
PathGets the creation time of the node.
Methods
UpdatePath(VFSPath)Updates the path of the node.