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 | |
|---|---|
| Content | Gets the content of the file as a string. The encoding is in UTF-8. |
| IsDirectory | Indicates whether the node is a directory. |
| IsFile | Indicates whether the node is a file. |
| Methods | |
|---|---|
| ToString() | Returns a string that represents the path of the file. |