Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 2.42 KB

File metadata and controls

31 lines (22 loc) · 2.42 KB

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.