FileSystemHandle Class
A handle to a file or a directory of the origin private file system (https://fs.spec.whatwg.org/#api-filesystemhandle), obtained from StorageManager.GetDirectory. A handle is a locator (the path of the entry in the file system of its origin): the entry may not exist, and several handles can locate the same entry.
public abstract class FileSystemHandleProperties
| Name | Description |
|---|---|
| Kind | Gets the kind of the entry. |
| Name | Gets the name of the entry: the last component of its path (the empty string for the root directory). |
Kind
Gets the kind of the entry.
public abstract FileSystemHandleKind Kind { get; }Gets the name of the entry: the last component of its path (the empty string for the root directory).
public string Name { get; }Methods
| Name | Description |
|---|---|
| IsSameEntry(FileSystemHandle) | Returns whether the two handles locate the same entry (https://fs.spec.whatwg.org/#dom-filesystemhandle-issameentry). |
| Remove(FileSystemRemoveOptions?) | Removes the entry (the remove() method that the browsers implement for the handles of the origin private file system; it is not in the File System Standard yet, see https://github.com/whatwg/fs/pull/9): as FileSystemDirectoryHandle.RemoveEntry called on its parent directory. Removing the root directory removes all its entries. |
IsSameEntry(FileSystemHandle)
FileSystemHandle.csReturns whether the two handles locate the same entry (https://fs.spec.whatwg.org/#dom-filesystemhandle-issameentry).
public Task<bool> IsSameEntry(FileSystemHandle other)Remove(FileSystemRemoveOptions?)
FileSystemHandle.cs- Experimental (WEBPLATEXP0007)
Removes the entry (the remove() method that the browsers implement for the handles of the origin private file system; it is not in the File System Standard yet, see https://github.com/whatwg/fs/pull/9): as FileSystemDirectoryHandle.RemoveEntry called on its parent directory. Removing the root directory removes all its entries.
[Experimental("WEBPLATEXP0007", UrlFormat = "https://github.com/meziantou/Meziantou.Framework/blob/main/src/Meziantou.Framework.WebPlatform/docs/experimental-apis.md#{0}")]
public Task Remove(FileSystemRemoveOptions? options = null)Parameters
optionsFileSystemRemoveOptions?- The options:
FileSystemRemoveOptions.Recursiveremoves a directory that is not empty.