FileSystemEntry Class

A file or a directory of a FileSystem (https://wicg.github.io/entries-api/#api-entry).

public abstract class FileSystemEntry

Properties

NameDescription
FilesystemGets the file system of the entry.
FullPathGets the full path of the entry: / followed by the names of its path, e.g. /photos/a.jpg.
IsDirectoryGets whether the entry is a directory.
IsFileGets whether the entry is a file.
NameGets the name of the entry (the empty string for the root directory).

Gets the file system of the entry.

public FileSystem Filesystem { get; }

Gets the full path of the entry: / followed by the names of its path, e.g. /photos/a.jpg.

public string FullPath { get; }

Gets whether the entry is a directory.

public bool IsDirectory { get; }

IsFile

Gets whether the entry is a file.

public abstract bool IsFile { get; }

Gets the name of the entry (the empty string for the root directory).

public string Name { get; }

Methods

NameDescription
GetParent(FileSystemEntryCallback?, ErrorCallback?)Calls successCallback (from a task) with the parent directory of the entry, the root directory for the root directory.

GetParent(FileSystemEntryCallback?, ErrorCallback?)

FileSystemEntry.cs

Calls successCallback (from a task) with the parent directory of the entry, the root directory for the root directory.

public void GetParent(FileSystemEntryCallback? successCallback = null, ErrorCallback? errorCallback = null)