Skip to content

User-initiated Python write access to CIRCUITPY #11091

Description

@dhalbert

(Moving some discussion to this repo from circuitpython/web-editor#399)

Currently, Python code does not have write access to the CIRCUITPY filesystem on a USB native device, unless the filesystem is remounted in boot.py, or storage.disable_usb_drive().

Code editors, such as Thonny, https://github.com/circuitpython/web-editor, and other browser-based editors want to do filesystem operations. They either use USB MSC, or use the REPL. For browser-based editors, the user must give permission for the browser-supplied File System Access API to use USB MSC. This is only available on Chromium-based browsers. Firefox recently added Web Serial, but it appears unlikely to implement the File System API soon. (Firefox does implement it for browser-only-private filesystems, not the user drive or external drives.)

Some ideas about how to allow an editor to initiate CIRCUITPY write access:

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions