Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for FileSystemFileHandle.
Developer library 6
DataTransferItem
ated with the drag data item (or null if the drag item is not a file). - DataTransferItem.getAsFileSystemHandle() - : Returns a Promise that fulfills with a FileSystemFileHandle if the dragged item is a file, or fulfills with a FileSystemDirectoryHandle if the dragged item is a directory. - DataTransferItem.getAsString() - : Invokes the specified callback with the drag data item string as its argument. - DataTra
DataTransferItem: getAsFileSystemHandle() method
File System API The **`getAsFileSystemHandle()`** method of the DataTransferItem interface returns a Promise that fulfills with a FileSystemFileHandle if the dragged item is a file, or fulfills with a FileSystemDirectoryHandle if the dragged item is a directory. During a drag operation, this method can only read data in the handlers for the dragstart and drop events, because those are the only times the drag data s
FileSystemSyncAccessHandle
hem suitable for significant, large-scale file updates such as [SQLite](https://sqlite.org/wasm) database modifications. The interface is accessed through the FileSystemFileHandle.createSyncAccessHandle() method. > [!NOTE] > In earlier versions of the spec, close(), flush(), getSize(), and truncate() were wrongly specified as asynchronous methods, and older versions of some browsers implement them in this way. Howe
FileSystemWritableFileStream
File System API is a WritableStream object with additional convenience methods, which operates on a single file on disk. The interface is accessed through the FileSystemFileHandle.createWritable() method. ## Instance properties _Inherits properties from its parent, WritableStream._ ## Instance methods _Inherits methods from its parent, WritableStream._ - FileSystemWritableFileStream.write() - : Writes conte
FileSystemWritableFileStream: seek() method
rror - : Thrown if `position` is not a number or not defined. ## Examples The following asynchronous function opens the 'Save File' picker, which returns a FileSystemFileHandle once a file is selected. From this, a writable stream is created using the FileSystemFileHandle.createWritable() method. Next, we write to the stream: 1. A text string is written to the stream. 2. The `seek()` method is used to put the c
FileSystemWritableFileStream: write() method
f `data` is undefined, or if `position` or `size` aren't valid. ## Examples The following asynchronous function opens the 'Save File' picker, which returns a FileSystemFileHandle once a file is selected. From this, a writable stream is created using the FileSystemFileHandle.createWritable() method. A text string is then written to the stream, which is subsequently closed. ```js async function saveFile() { try {