FileNode.md

January 20, 2026 Ā· View on GitHub

Atypical.VirtualFileSystem.Core

Atypical.VirtualFileSystem.Core

FileNode Class

Represents a file in the virtual file system.

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

Inheritance System.Object šŸ”’ VFSNode šŸ”’ FileNode

Derived
↳ BinaryFileNode

Implements IFileNode, IVirtualFileSystemNode, System.IEquatable<FileNode>

Constructors
FileNode(VFSFilePath, string)Initializes a new instance of the FileNode class. Creates a new file node. The file is created with the current date and time as creation and last modification date.
Properties
ContentGets the content of the file as a string. The encoding is in UTF-8.
IsDirectoryIndicates whether the node is a directory.
IsFileIndicates whether the node is a file.
Methods
ToString()Returns a string that represents the path of the file.