Once this happens successfully, a handle is returned. Once these are called, the file picker presents itself and the user selects either a file or directory. You can first gain access to them by showing the user a file or directory picker using methods such as window.showOpenFilePicker() and window.showDirectoryPicker(). The handles represent a file or directory on the user's system. A parent FileSystemHandle class helps define two child classes: FileSystemFileHandle and FileSystemDirectoryHandle, for files and directories respectively. Most of the interaction with files and directories is accomplished through handles. Core functionality of this API includes reading files, writing or saving files, and access to directory structure. This API allows interaction with files on a user's local device, or on a user-accessible network file system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |