mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 14:56:29 +00:00
Remove unused fs.Rename
This commit is contained in:
parent
1b20f6beec
commit
c504aa505c
@ -32,14 +32,6 @@ func RemoveAll(path string) error {
|
|||||||
return os.RemoveAll(fixpath(path))
|
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.
|
// Symlink creates newname as a symbolic link to oldname.
|
||||||
// If there is an error, it will be of type *LinkError.
|
// If there is an error, it will be of type *LinkError.
|
||||||
func Symlink(oldname, newname string) error {
|
func Symlink(oldname, newname string) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user