tree: dfb2268a55c4a6d0a43592b98f42e469224fc177 [path history] [tgz]
  1. BUILD.gn
  2. choose_file_system_entries_options.idl
  3. choose_file_system_entries_options_accepts.idl
  4. DEPS
  5. file_system_directory_handle.idl
  6. file_system_file_handle.idl
  7. file_system_get_directory_options.idl
  8. file_system_get_file_options.idl
  9. file_system_handle.idl
  10. file_system_writer.idl
  11. get_system_directory_options.idl
  12. native_file_system_directory_handle.cc
  13. native_file_system_directory_handle.h
  14. native_file_system_directory_iterator.cc
  15. native_file_system_directory_iterator.h
  16. native_file_system_directory_iterator.idl
  17. native_file_system_directory_iterator_entry.idl
  18. native_file_system_file_handle.cc
  19. native_file_system_file_handle.h
  20. native_file_system_handle.cc
  21. native_file_system_handle.h
  22. native_file_system_writer.cc
  23. native_file_system_writer.h
  24. OWNERS
  25. README.md
  26. window_native_file_system.cc
  27. window_native_file_system.h
  28. window_native_file_system.idl
third_party/blink/renderer/modules/native_file_system/README.md

Native File System API

This directory contains the renderer side implementation of the native file system API.

Related directories

//content/browser/native_file_system/ contains the browser side implementation and blink/public/mojom/native_file_system contains the mojom interfaces for these APIs.

APIs In this directory

This directory contains the implementation of the new and still under development Native File System API.

It consists of the following parts:

  • FileSystemHandle, FileSystemFileHandle and FileSystemDirectoryHandle: these interfaces mimic the old Entry interfaces, but expose a more modern promisified API.

  • getSystemDirectory: An entry point (exposed via FileSystemDirectoryHandle) that today only gives access to the same sandboxed filesystem as what was available through the old API. In the future this could get extended to add support for other directories as well.

  • FileSystemWriter: a more modern API with similar functionality to the old FileWriter API. The implementation of this actually does make use of a different mojom interface than the old API. But since the functionality is mostly the same, hopefully we will be able to migrate the old implementation to the new mojom API as well.

  • chooseFileSystemEntries: An entry point, currently on window, that lets a website pop-up a file picker, prompting the user to select one or more files or directories, to which the website than gets access.