mirror of
https://github.com/restic/restic.git
synced 2026-10-10 20:17:12 +00:00
Save cached files to a temporary location first
This commit is contained in:
1 parent
f9b6f8fd45
commit
ea04f40eb3
4 files changed
+110
-81
No files matched your search
@@ -40,6 +40,14 @@ func RemoveAll(path string) error {
|
||||
return os.RemoveAll(fixpath(path))
|
||||
}
|
||||
|
||||
// Rename renames (moves) oldpath to newpath.
|
||||
// If newpath already exists, Rename replaces it.
|
||||
// OS-specific restrictions may apply when oldpath and newpath are in different directories.
|
||||
// If there is an error, it will be of type *LinkError.
|
||||
func Rename(oldpath, newpath string) error {
|
||||
return os.Rename(fixpath(oldpath), fixpath(newpath))
|
||||
}
|
||||
|
||||
// Symlink creates newname as a symbolic link to oldname.
|
||||
// If there is an error, it will be of type *LinkError.
|
||||
func Symlink(oldname, newname string) error {
|
||||
|
||||
Reference in new issue
Block a user