javascriptfilesystems

How to save files to a directory using FileSystemDirectoryHandle?


I'm trying to look for some documentation on FileSystemDirectoryHandle and if it is possible to save files to the opened directory. I've been searching for a couple hours now, any help will be appreciated. -Alex

I tried searching on google but I've only found base overviews of the api. And I've tried looking at the returned object itself


Solution

  • I found an answer of at this github repository https://github.com/leon/labs-chrome-file-write

    I just needed to add {create:true} as a parameter when searching for a file in the directory