ProjectedFileSystemEntry Class

Represents a file or directory entry in a virtual file system.

public sealed class ProjectedFileSystemEntry

Properties

NameDescription
IsDirectoryGets a value indicating whether this entry represents a directory.
LengthGets the size of the file in bytes. Always 0 for directories.
NameGets the name of the file or directory.

Gets a value indicating whether this entry represents a directory.

public bool IsDirectory { get; }

Property value

bool

Gets the size of the file in bytes. Always 0 for directories.

public int Length { get; }

Property value

int

Gets the name of the file or directory.

public string Name { get; }

Property value

string

Methods

NameDescription
Directory(string)Creates a directory entry.
File(string, int)Creates a file entry.

Creates a directory entry.

public static ProjectedFileSystemEntry Directory(string name)

Parameters

name string
The name of the directory.

Returns

ProjectedFileSystemEntry A ProjectedFileSystemEntry representing a directory.

Creates a file entry.

public static ProjectedFileSystemEntry File(string name, int length)

Parameters

name string
The name of the file.
length int
The size of the file in bytes.

Returns

ProjectedFileSystemEntry A ProjectedFileSystemEntry representing a file.