Support reading "." for fs.FS

This commit is contained in:
stffabi
2021-12-02 13:39:13 +01:00
parent e8a8c531a9
commit c988309edc
3 changed files with 23 additions and 4 deletions
+3 -2
View File
@@ -135,10 +135,11 @@ func (f File) FS() (*FS, error) {
return nil, err
}
return &FS{
entries: ents,
parent: f.parent,
i: f.i,
r: f.r,
parent: f.parent,
name: f.name,
entries: ents,
}, nil
}