IVirtualFileSystemNode.md

June 4, 2025 · View on GitHub

Atypical.VirtualFileSystem.Core

Atypical.VirtualFileSystem.Core.Contracts

IVirtualFileSystemNode Interface

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

public interface IVirtualFileSystemNode

Derived
BinaryFileNode
IDirectoryNode
IFileNode
IRootNode
DirectoryNode
FileNode
IBinaryFileNode
RootNode
VFSNode

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.
NameGets the name of the virtual file system node. The name is the last part of the path. For example, the name of the file "vfs://temp/file.txt" is "file.txt". The name of the directory "vfs://temp" is "temp".
PathGets the full path of the node. The path is the path from the root of the file system to the node. For example, the path of the node with the path "./temp/file.txt" is "./temp/file.txt". The path of the node with the path "./temp/" is "./temp/".