getFile method

JSPromise<File> getFile()

The getFile() method of the FileSystemFileHandle interface returns a Promise which resolves to a File object representing the state on disk of the entry represented by the handle.

If the file on disk changes or is removed after this method is called, the returned File object will likely be no longer readable.

Implementation

external JSPromise<File> getFile();