tree: 5169da92b2042e902f0de9a5e02296215ed46133 [path history] [tgz]
  1. BUILD.gn
  2. data_transfer_item_file_system_access.cc
  3. data_transfer_item_file_system_access.h
  4. data_transfer_item_file_system_access.idl
  5. DEPS
  6. DIR_METADATA
  7. directory_picker_options.idl
  8. file_picker_accept_type.idl
  9. file_picker_options.idl
  10. file_system_access_error.cc
  11. file_system_access_error.h
  12. file_system_access_file_delegate.h
  13. file_system_access_incognito_file_delegate.cc
  14. file_system_access_incognito_file_delegate.h
  15. file_system_access_regular_file_delegate.cc
  16. file_system_access_regular_file_delegate.h
  17. file_system_create_writable_options.idl
  18. file_system_directory_handle.cc
  19. file_system_directory_handle.h
  20. file_system_directory_handle.idl
  21. file_system_directory_iterator.cc
  22. file_system_directory_iterator.h
  23. file_system_directory_iterator.idl
  24. file_system_file_handle.cc
  25. file_system_file_handle.h
  26. file_system_file_handle.idl
  27. file_system_get_directory_options.idl
  28. file_system_get_file_options.idl
  29. file_system_handle.cc
  30. file_system_handle.h
  31. file_system_handle.idl
  32. file_system_handle_permission_descriptor.idl
  33. file_system_read_write_options.idl
  34. file_system_remove_options.idl
  35. file_system_sync_access_handle.cc
  36. file_system_sync_access_handle.h
  37. file_system_sync_access_handle.idl
  38. file_system_underlying_sink.cc
  39. file_system_underlying_sink.h
  40. file_system_writable_file_stream.cc
  41. file_system_writable_file_stream.h
  42. file_system_writable_file_stream.idl
  43. global_file_system_access.cc
  44. global_file_system_access.h
  45. global_file_system_access_test.cc
  46. open_file_picker_options.idl
  47. OWNERS
  48. README.md
  49. save_file_picker_options.idl
  50. storage_manager_file_system_access.cc
  51. storage_manager_file_system_access.h
  52. storage_manager_file_system_access.idl
  53. window_file_system_access.idl
  54. 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.