Skip to content

Autosave name generation causing error in some directory #557

@asen23

Description

@asen23

The autosave name is naively generated by simply replacing the .yafc like below

filename.Replace(".yafc", $"-autosave-{saveIndex}.yafc")

This causes issue when you save to a path that contains that string, for example if i create a project in ~/.yafc/project.yafc, a DirectoryNotFoundException will be triggered because it tried to save into ~/-autosave-1.yafc/project-autosave-1.yafc which obviously doesn't exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions