fix: pass Name to override using CID
This commit is contained in:
parent
3e4eed12ae
commit
6e97b582ba
|
@ -385,6 +385,7 @@ func (f *S5File) ReadDir(n int) ([]fs.DirEntry, error) {
|
|||
Hash: file.File.CID().Hash.HashBytes(),
|
||||
Type: file.File.CID().Type,
|
||||
Tus: f.tus,
|
||||
Name: file.Name,
|
||||
}))
|
||||
}
|
||||
|
||||
|
@ -398,6 +399,7 @@ func (f *S5File) ReadDir(n int) ([]fs.DirEntry, error) {
|
|||
Metadata: f.metadata,
|
||||
Hash: cid.Hash.HashBytes(),
|
||||
Type: cid.Type,
|
||||
Name: subDir.Name,
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue