mirror of
https://github.com/restic/restic.git
synced 2026-10-21 16:38:12 +00:00
archiver: extract Readdirnames to fs package
This commit is contained in:
1 parent
83fdcf21fe
commit
1369658a32
4 files changed
+26
-25
No files matched your search
@@ -124,7 +124,7 @@ func (s *Scanner) scan(ctx context.Context, stats ScanStats, target string) (Sca
|
||||
stats.Files++
|
||||
stats.Bytes += uint64(fi.Size())
|
||||
case fi.Mode().IsDir():
|
||||
names, err := readdirnames(s.FS, target, fs.O_NOFOLLOW)
|
||||
names, err := fs.Readdirnames(s.FS, target, fs.O_NOFOLLOW)
|
||||
if err != nil {
|
||||
return stats, s.Error(target, err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user