javascriptfirefoxhtml5-filesystem

What is the use of FileSystem API in Firefox?


Are there any use cases of using File System API in Firefox? All examples on MDN show savePicker functions that are not supported by Firefox. Can you use this API for something useful or is it useless in Firefox?

I've found requestFileSystem but it's deprecated and not supported by Firefox.

I want to play with the API and maybe create FS library or extension to lightning-fs for usage with isomorphic-git.


Solution

  • I was searching more and found this Reddit post from 3 years ago:

    Will firefox support the file system access API?

    that links to this statement

    There's a subset of this API we're quite enthusiastic about (in particular providing a read/write API for files and directories as alternative storage endpoint), but it is wrapped together with aspects for which we do not think meaningful end user consent is possible to obtain (in particular cross-site access to the end user's local file system). Overall we consider this harmful therefore, but Mozilla could be supportive of parts, provided this were segmented better.

    So it's most likely that FileSystem will never be implemented in Firefox. Even that part of the API is available. Without the pickers functions, you can't access the file system and save the files locally.