aboutsummaryrefslogtreecommitdiffstats
path: root/utils/fs/memory/memory.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils/fs/memory/memory.go')
-rw-r--r--utils/fs/memory/memory.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/fs/memory/memory.go b/utils/fs/memory/memory.go
index ef54c37..398ac35 100644
--- a/utils/fs/memory/memory.go
+++ b/utils/fs/memory/memory.go
@@ -91,7 +91,7 @@ func (fs *Memory) ReadDir(base string) (entries []fs.FileInfo, err error) {
parts := strings.Split(fullpath, string(separator))
if len(parts) == 1 {
- entries = append(entries, newFileInfo(fs.base, fullpath, f.content.Len()))
+ entries = append(entries, &fileInfo{name: parts[0], size: f.content.Len()})
continue
}