tree: 39b11b97aa8917ce828a8ccce43665361101947c [path history] [tgz]
  1. BUILD.gn
  2. data_transfer_item_native_file_system.cc
  3. data_transfer_item_native_file_system.h
  4. data_transfer_item_native_file_system.idl
  5. DEPS
  6. directory_picker_options.idl
  7. file_picker_accept_type.idl
  8. file_picker_options.idl
  9. file_system_create_writer_options.idl
  10. file_system_directory_handle.idl
  11. file_system_file_handle.idl
  12. file_system_get_directory_options.idl
  13. file_system_get_file_options.idl
  14. file_system_handle.idl
  15. file_system_handle_permission_descriptor.idl
  16. file_system_remove_options.idl
  17. file_system_writable_file_stream.idl
  18. global_native_file_system.cc
  19. global_native_file_system.h
  20. global_native_file_system_test.cc
  21. idls.gni
  22. native_file_system_directory_handle.cc
  23. native_file_system_directory_handle.h
  24. native_file_system_directory_iterator.cc
  25. native_file_system_directory_iterator.h
  26. native_file_system_directory_iterator.idl
  27. native_file_system_error.cc
  28. native_file_system_error.h
  29. native_file_system_file_handle.cc
  30. native_file_system_file_handle.h
  31. native_file_system_handle.cc
  32. native_file_system_handle.h
  33. native_file_system_underlying_sink.cc
  34. native_file_system_underlying_sink.h
  35. native_file_system_writable_file_stream.cc
  36. native_file_system_writable_file_stream.h
  37. open_file_picker_options.idl
  38. OWNERS
  39. README.md
  40. save_file_picker_options.idl
  41. storage_manager_native_file_system.cc
  42. storage_manager_native_file_system.h
  43. storage_manager_native_file_system.idl
  44. window_native_file_system.idl
  45. write_params.idl
third_party/blink/renderer/modules/file_system_access/README.md

File System Access API

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

Related directories

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

APIs In this directory

This directory contains the implementation of the File System Access 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.

  • StorageManager.getDirectory: An entry point that gives access to the same sandboxed filesystem as what is available through the old API.

  • FileSystemWritableFileStream: 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.

  • showOpenFilePicker, showSaveFilePicker and showDirectorPicker: Entry points on window, that let a website pop-up a file or directory picker, prompting the user to select one or more files or directories, to which the website than gets access.