Skip to content

Attempt to save schematics atomically - #219

Merged
dsharlet merged 2 commits into
masterfrom
atomic-save
Feb 1, 2024
Merged

Attempt to save schematics atomically#219
dsharlet merged 2 commits into
masterfrom
atomic-save

Conversation

@dsharlet

Copy link
Copy Markdown
Owner

Hopefully this helps the VST plugin to watch the file system more easily (#217).

@kostoskistefan

Copy link
Copy Markdown
Contributor

This looks and works great, just one small thing. If the MoveFileEx fails, the .temp file should be removed, if i'm not mistaken.

@dsharlet

dsharlet commented Feb 1, 2024

Copy link
Copy Markdown
Owner Author

I thought about that, I think I'm just going to leave it. I think failures of this will be extremely rare, and if it does fail, it might be useful as a way to recover from a failed save.

@dsharlet
dsharlet merged commit 8e5086a into master Feb 1, 2024
@dsharlet
dsharlet deleted the atomic-save branch February 1, 2024 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants