fix: saving follows symbolic links and keeps the file's permissions (#845)

A save through a symbolic link replaces the file it points to and keeps the link; the saved file and its backup keep the original permissions.
This commit is contained in:
Lasse Lian authored and GitHub committed 2026-10-13 16:32:55 -04:00
1 parent ec5d7f9789
commit 4d8c80a86d
2 files changed
+136 -5

No files matched your search

+3 -1
View File
@@ -36,7 +36,9 @@ keep a model's faces (for loads, boundary conditions or feature edges); other 3M
them. The format is specified in [`docs/formats/3mf-face-tags.md`](https://github.com/bherbruck/solidcraft/blob/main/docs/formats/3mf-face-tags.md).
Saves are atomic: a crash at any moment leaves either the old file or the new one, and the
replaced version is kept as `<file>.bak`. Unsaved changes are autosaved to a recovery folder,
replaced version is kept as `<file>.bak`. A save keeps the file's permissions, and a design
opened through a symbolic link (a synced folder linked into a project) is saved into the file the
link points to, so the link stays. Unsaved changes are autosaved to a recovery folder,
and the next launch offers to recover them. Older design files are upgraded on open, and files
from a newer version are refused with a message.