Skip to content

Deleting File inside folder or Folder with items using FSAPI results in Error #386

@makermelissa

Description

@makermelissa

CircuitPython Version

10.0.0-beta.3

Workflow(s)

USB

Browser(s)

Google Chrome 140.0.7339.133

Console Log

file_dialog.js:453 Uncaught (in promise) InvalidModificationError: The object can not be modified in this way.
_handleDelButton	@	file_dialog.js:453

or

file_dialog.js:453 Uncaught (in promise) NotFoundError: A requested file or directory could not be found at the time an operation was processed.
_handleDelButton	@	file_dialog.js:453

Steps

  1. Connect the board with built-in USB via USB Workflow
  2. Type something into the editor
  3. Click Save As
  4. Create a Folder
  5. Save the file inside that folder
  6. Click Open, Enter the subfolder, and attempt to delete the file.

Description

FileSystem API does not currently support moving entire folders, so an error is thrown instead. However, when the error is thrown, the app doesn't return control to the user.

Additional information

Creating an empty subfolder and deleting it seems to work fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions