FileSystemDirectoryEntry Class
A directory of a FileSystem (https://wicg.github.io/entries-api/#api-directoryentry).
public sealed class FileSystemDirectoryEntry : FileSystemEntry- Inheritance
FileSystemEntryFileSystemDirectoryEntry
Properties
| Name | Description |
|---|---|
| IsFile | Gets whether the entry is a file. |
IsFile
FileSystemEntry.csGets whether the entry is a file.
public override bool IsFile { get; }Methods
| Name | Description |
|---|---|
| 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.csReturns a reader of the entries of the directory.
public FileSystemDirectoryReader CreateReader()GetDirectory(string?, FileSystemFlags?, FileSystemEntryCallback?, ErrorCallback?)
FileSystemEntry.csCalls 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)Parameters
pathstring?optionsFileSystemFlags?successCallbackFileSystemEntryCallback?errorCallbackErrorCallback?
See also
GetFile(string?, FileSystemFlags?, FileSystemEntryCallback?, ErrorCallback?)
FileSystemEntry.csCalls 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)Parameters
pathstring?optionsFileSystemFlags?successCallbackFileSystemEntryCallback?errorCallbackErrorCallback?