Skip to content

Renaming a file throws this error: no such file or directory, lstat '<path>' at Object.lstatSync (node:fs:1642:25) #4271

@safisa

Description

@safisa

Hi,

When I rename a file in my workspace (any file), I see this error in the backend log:

Error: ENOENT: no such file or directory, lstat '<folder>/README.md'
    at Object.lstatSync (node:fs:1642:25)

It seems that the rename handler uses lstatSync on the new old file after it has been renamed (no longer exists).

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions