fix: pass Name to override using CID

This commit is contained in:
Derrick Hammer 2024-03-07 16:48:20 -05:00
parent 3e4eed12ae
commit 6e97b582ba
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

@ -385,6 +385,7 @@ func (f *S5File) ReadDir(n int) ([]fs.DirEntry, error) {
Hash: file.File.CID().Hash.HashBytes(), Hash: file.File.CID().Hash.HashBytes(),
Type: file.File.CID().Type, Type: file.File.CID().Type,
Tus: f.tus, Tus: f.tus,
Name: file.Name,
})) }))
} }
@ -398,6 +399,7 @@ func (f *S5File) ReadDir(n int) ([]fs.DirEntry, error) {
Metadata: f.metadata, Metadata: f.metadata,
Hash: cid.Hash.HashBytes(), Hash: cid.Hash.HashBytes(),
Type: cid.Type, Type: cid.Type,
Name: subDir.Name,
})) }))
} }