mirror of
https://github.com/octoleo/restic.git
synced 2025-01-10 18:04:38 +00:00
archiver: Remove unused chmod function
This commit is contained in:
parent
014600bee6
commit
ee05501ce7
@ -1984,13 +1984,6 @@ func snapshot(t testing.TB, repo restic.Repository, fs fs.FS, parent restic.ID,
|
|||||||
return snapshotID, node
|
return snapshotID, node
|
||||||
}
|
}
|
||||||
|
|
||||||
func chmod(t testing.TB, filename string, mode os.FileMode) {
|
|
||||||
err := os.Chmod(filename, mode)
|
|
||||||
if err != nil {
|
|
||||||
t.Fatal(err)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// StatFS allows overwriting what is returned by the Lstat function.
|
// StatFS allows overwriting what is returned by the Lstat function.
|
||||||
type StatFS struct {
|
type StatFS struct {
|
||||||
fs.FS
|
fs.FS
|
||||||
|
Loading…
Reference in New Issue
Block a user