mirror of
https://github.com/restic/restic.git
synced 2026-06-17 22:24:17 +00:00
fs: unexport Local and expose via NewLocal
This commit is contained in:
@@ -567,7 +567,7 @@ func runBackup(ctx context.Context, opts BackupOptions, gopts global.Options, te
|
||||
return err
|
||||
}
|
||||
|
||||
var targetFS fs.FS = fs.Local{}
|
||||
targetFS := fs.NewLocal()
|
||||
if runtime.GOOS == "windows" && opts.UseFsSnapshot {
|
||||
if err = fs.HasSufficientPrivilegesForVSS(); err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user