tree: 648890222f7f5ecb29aad297a93e33bf75455859 [path history] [tgz]
  1. allow_shared_buffer_source_util.h
  2. BUILD.gn
  3. data_transfer_item_file_system_access.cc
  4. data_transfer_item_file_system_access.h
  5. data_transfer_item_file_system_access.idl
  6. DEPS
  7. DIR_METADATA
  8. directory_picker_options.idl
  9. file_picker_accept_type.idl
  10. file_picker_options.idl
  11. file_system_access_capacity_tracker.cc
  12. file_system_access_capacity_tracker.h
  13. file_system_access_error.cc
  14. file_system_access_error.h
  15. file_system_access_file_delegate.h
  16. file_system_access_incognito_file_delegate.cc
  17. file_system_access_incognito_file_delegate.h
  18. file_system_access_manager.cc
  19. file_system_access_manager.h
  20. file_system_access_regular_file_delegate.cc
  21. file_system_access_regular_file_delegate.h
  22. file_system_change_record.cc
  23. file_system_change_record.h
  24. file_system_change_record.idl
  25. file_system_cloud_identifier.idl
  26. file_system_create_sync_access_handle_options.idl
  27. file_system_create_writable_options.idl
  28. file_system_directory_handle.cc
  29. file_system_directory_handle.h
  30. file_system_directory_handle.idl
  31. file_system_file_handle.cc
  32. file_system_file_handle.h
  33. file_system_file_handle.idl
  34. file_system_get_directory_options.idl
  35. file_system_get_file_options.idl
  36. file_system_handle.cc
  37. file_system_handle.h
  38. file_system_handle.idl
  39. file_system_handle_permission_descriptor.idl
  40. file_system_observer.cc
  41. file_system_observer.h
  42. file_system_observer.idl
  43. file_system_observer_callback.idl
  44. file_system_observer_observe_options.idl
  45. file_system_read_write_options.idl
  46. file_system_remove_options.idl
  47. file_system_sync_access_handle.cc
  48. file_system_sync_access_handle.h
  49. file_system_sync_access_handle.idl
  50. file_system_underlying_sink.cc
  51. file_system_underlying_sink.h
  52. file_system_writable_file_stream.cc
  53. file_system_writable_file_stream.h
  54. file_system_writable_file_stream.idl
  55. global_file_system_access.cc
  56. global_file_system_access.h
  57. global_file_system_access_test.cc
  58. open_file_picker_options.idl
  59. OWNERS
  60. README.md
  61. save_file_picker_options.idl
  62. storage_manager_file_system_access.cc
  63. storage_manager_file_system_access.h
  64. storage_manager_file_system_access.idl
  65. window_file_system_access.idl
  66. 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. This API spans two specifications:

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.