archiver: extract Readdirnames to fs package

This commit is contained in:
Michael Eischer committed 2024-07-05 21:03:34 +02:00
1 parent 83fdcf21fe
commit 1369658a32
4 files changed
+26 -25

No files matched your search

+1 -1
View File
@@ -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)
}