Unexpected behavior when renaming or deleting a folder · Issue #5683 · marktext/marktext · GitHub
Skip to content

Unexpected behavior when renaming or deleting a folder #5683

Closed

Description

@DanilaParakhnevich

Description

After renaming a folder containing a single file, the old version of the file is not removed from the application's file manager.

Steps to Reproduce

  1. Create a package and a file inside of it
  2. Rename package with another title

Expected Behavior

The folder with the old name must be replaced with a folder with the new name

Actual Behavior

A folder with the new name is created, while the old one remains in the app's file manager, even though it is actually deleted. I also cannot delete any folders (I can delete files). The path contains no characters other than English letters and underscores. The following error appears when attempting to delete them:

Error invoking remote method 'mt::fs-trash-item': Error: Failed to parse path.

Screenshots / Logs

Before renaming:

Image

After renaming:

Image

Error when attempting to remove any package:

Image

Operating System

Windows

MarkText Version

0.21.1

OS Version

Windows 11

Reproducibility

  • I can reliably reproduce this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions