Commit Graph

6 Commits

Author SHA1 Message Date
Hood Chatham 20e92c37ca
DOCS, MAINT: Replace :any: xrefs with more specific types (#3531)
This leads to more consistent rendering (functions and methods get parens after
them) and reduces chances of warnings about getting the wrong link. It is also
possible to use `~fully.quallified.name` to just show `name` if we use a specific
reference type, but it doesn't work with `any` for some reason.
2023-02-01 11:00:58 -08:00
Gyeongjae Choi 3a7e1ccbd4
DOC Add a FAQ entry for async filesystem usage (#3222)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2022-11-04 11:04:35 +09:00
Gyeongjae Choi 7dfee03a82
ENH Add API for mounting native file system (#2987)
This PR adds an API pyodide.mountNativeFS which mounts FileSystemDirectoryHandle into a Pyodide Python file system.

Note that there are some limitations such as:

- File System Access API is only supported by Chromium-based browsers (Safari also implements a portion of it but they only support Origin Private File system so it is not very useful for common users).
- The file system is asynchronous, so one needs to call syncfs to persist changes.

Since it is asynchronous, it does not require any WebWorker, SharedArrayBuffer, or Atomics. But I think we can extend this to a synchronous version using those features
2022-09-30 09:24:53 +09:00
lukemarsden 521833b791
DOCS Fix nodefs example in file-system.md (#2867) 2022-07-13 08:53:55 +03:00
Hood Chatham cdc59accf3
DOCS Edits and updates (#2756) 2022-06-21 20:15:37 -07:00
Gyeongjae Choi 410c875e04
DOC Add documentation entry about file system access (#2420)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-04 19:43:34 +09:00