FileSystemDirectoryEntry Class

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

public sealed class FileSystemDirectoryEntry : FileSystemEntry
Inheritance
FileSystemEntry FileSystemDirectoryEntry

Properties

NameDescription
IsFileGets whether the entry is a file.

Gets whether the entry is a file.

public override bool IsFile { get; }

Methods

NameDescription
CreateReader()Returns a reader of the entries of the directory.
GetDirectory(string?, FileSystemFlags?, FileSystemEntryCallback?, ErrorCallback?)Calls successCallback (from a task) with the directory at path (see FileSystemDirectoryEntry.GetFile).
GetFile(string?, FileSystemFlags?, FileSystemEntryCallback?, ErrorCallback?)Calls successCallback (from a task) with the file at path, relative to the directory or absolute (e.g. photos/a.jpg, ../b.txt, /c.txt). errorCallback gets a TypeMismatchError for an invalid path or a directory, a NotFoundError when there is no entry, and a SecurityError when FileSystemFlags.Create is set.

CreateReader()

FileSystemEntry.cs

Returns a reader of the entries of the directory.

public FileSystemDirectoryReader CreateReader()

GetDirectory(string?, FileSystemFlags?, FileSystemEntryCallback?, ErrorCallback?)

FileSystemEntry.cs

Calls successCallback (from a task) with the directory at path (see FileSystemDirectoryEntry.GetFile).

public void GetDirectory(string? path = null, FileSystemFlags? options = null, FileSystemEntryCallback? successCallback = null, ErrorCallback? errorCallback = null)

GetFile(string?, FileSystemFlags?, FileSystemEntryCallback?, ErrorCallback?)

FileSystemEntry.cs

Calls successCallback (from a task) with the file at path, relative to the directory or absolute (e.g. photos/a.jpg, ../b.txt, /c.txt). errorCallback gets a TypeMismatchError for an invalid path or a directory, a NotFoundError when there is no entry, and a SecurityError when FileSystemFlags.Create is set.

public void GetFile(string? path = null, FileSystemFlags? options = null, FileSystemEntryCallback? successCallback = null, ErrorCallback? errorCallback = null)