mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 19:39:05 +00: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 |