You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
right now the only way to get a FileSystemFileHandle is by using a showOpenFilePicker. however we may ALREADY know the filepath and just want to read and write to it without opening a picker. as far as I can tell there's no way to do that.
what i'd ideally want is something like:
letfileHandle=newFileSystemFileHandle(knownFilePath)// // the below operations would Just Work™// readconstfileData=awaitfileHandle.getFile();letcontents=awaitfileData.text()// writeconstwritable=awaitfileHandle.createWritable();awaitwritable.write(contents+'epsilon');awaitwritable.close();
Allowing websites to request access to specific file paths is much more dangerous than only allowing websites access to file paths users explicitly picked, as such we're not currently planning to implement a feature like this.
i think he kind of want a cd or recursive mkdir method on the FileSystemDirectoryHandle itself
Say that you already have access to the root directory and you have saved it into IndexeDB and you know for sure that you will also have access to all the subfolder of something that you have already given permission to.
hi folks thanks for working on this great API!
right now the only way to get a
FileSystemFileHandle
is by using ashowOpenFilePicker
. however we may ALREADY know the filepath and just want to read and write to it without opening a picker. as far as I can tell there's no way to do that.what i'd ideally want is something like:
use case: https://github.com/sw-yx/svelte-filesystem-demo
The text was updated successfully, but these errors were encountered: