mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-17 10:58:49 -07:00
f0684d83e9
This captures the common pattern of writing to a temp file and moving it to it's real name only if everything went well. It reduces the amount of code in some places where we do this, but maybe not as much as I expected because the upgrade thing is still a special snowflake... |
||
---|---|---|
.. | ||
atomic_test.go | ||
atomic.go | ||
filenames_darwin.go | ||
filenames_unix.go | ||
filenames_windows.go | ||
glob_unix.go | ||
glob_windows.go | ||
hidden_unix.go | ||
hidden_windows.go | ||
lan_unix.go | ||
lan_windows.go | ||
lstat_broken.go | ||
lstat_ok.go | ||
mkdirall_windows.go | ||
mkdirall.go | ||
osutil_test.go | ||
osutil.go | ||
replacingwriter_test.go | ||
replacingwriter.go |