JavaScripture
Contribute via GitHub Feedback

FileSystemHandle : Object

Instance Properties

kind : String  

Will be one of 'directory' or 'file'

Example:

Run

Results:

 

name : String  

Example:

Run

Results:

 

Instance Methods

isSameEntry(other : FileSystemHandle) : Promise<boolean>

Example:

Run

Results:

 

queryPermission([descriptor : Object]) : Promise<String>
descriptor : {
mode :StringMust be 'read' or 'readwrite'. Default = 'read'.
}

Return value will be one of 'denied', 'granted', or 'prompt'.

Example:

Run

Results:

 

requestPermission([descriptor : Object]) : Promise<String>
descriptor : {
mode :StringMust be 'read' or 'readwrite'. Default = 'read'.
}

Return value will be one of 'denied', 'granted', or 'prompt'.

Example:

Run

Results: