FileSystemDirectoryHandle class
- Inheritance
-
- Object
- FileSystemHandle
- FileSystemDirectoryHandle
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → FileSystemKind
-
Available on FileSystemHandle, provided by the JSFileSystemHandle extension
Returns the type of entry.file
if the associated entry is a file ordirectory
.no setter - name → String
-
Available on FileSystemHandle, provided by the JSFileSystemHandle extension
Returns the name of the associated entry (extension included).no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
values
→ Stream<
FileSystemHandle> -
Available on FileSystemDirectoryHandle, provided by the JSFileSystemDirectoryHandle extension
Asynchronous iterator of FileSystemHandle as found inthis
directory when called.no setter
Methods
-
getDirectoryHandle(
String name, {bool create = false}) → Future< FileSystemDirectoryHandle> -
Available on FileSystemDirectoryHandle, provided by the JSFileSystemDirectoryHandle extension
Returns a Future fulfilled with a FileSystemDirectoryHandle for a subdirectory with the specifiedname
, withinthis
directory. -
getFileHandle(
String name, {bool create = false}) → Future< FileSystemFileHandle> -
Available on FileSystemDirectoryHandle, provided by the JSFileSystemDirectoryHandle extension
Returns a Future fulfilled with a FileSystemFileHandle for a file with the specifiedname
, withinthis
directory. -
isSameEntry(
FileSystemHandle other) → Future< bool> -
Available on FileSystemHandle, provided by the JSFileSystemHandle extension
Compares two handles to see if the associated entries (either a file or directory) match. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
queryPermission(
{required PermissionMode mode}) → Future< PermissionState> -
Available on FileSystemHandle, provided by the JSFileSystemHandle extension
Queries the current permission state of the current handle. -
remove(
{bool recursive = false}) → Future< void> -
Available on FileSystemHandle, provided by the JSFileSystemHandle extension
Requests removal of the entry represented by the handle from the underlying file system. Whenrecursive
is set to true and the entry is a directory, its contents will be removed recursively. -
removeEntry(
String name, {bool recursive = false}) → Future< void> -
Available on FileSystemDirectoryHandle, provided by the JSFileSystemDirectoryHandle extension
Attempts to asynchronously remove an entry if the directory handle contains a file or directory called thename
specified. -
requestPermission(
{required PermissionMode mode}) → Future< PermissionState> -
Available on FileSystemHandle, provided by the JSFileSystemHandle extension
Requestsread
orreadwrite
permissions for the file handle. -
resolve(
FileSystemHandle possibleDescendant) → Future< List< String> ?> -
Available on FileSystemDirectoryHandle, provided by the JSFileSystemDirectoryHandle extension
Returns a List of directory names from the parent handle to the specified child entry, with the name of the child entry as the last array item or null ifpossibleDescendant
is not a descendant of this FileSystemDirectoryHandle. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited