archiver: extract Readdirnames to fs package

This commit is contained in:
Michael Eischer
2024-07-05 21:03:34 +02:00
parent 83fdcf21fe
commit 1369658a32
4 changed files with 26 additions and 25 deletions
+1 -1
View File
@@ -233,7 +233,7 @@ func unrollTree(f fs.FS, t *Tree) error {
// nodes, add the contents of Path to the nodes.
if t.Path != "" && len(t.Nodes) > 0 {
debug.Log("resolve path %v", t.Path)
entries, err := readdirnames(f, t.Path, 0)
entries, err := fs.Readdirnames(f, t.Path, 0)
if err != nil {
return err
}