From 6e97b582ba9877fe4ba196467555d776613ecbbd Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 7 Mar 2024 16:48:20 -0500 Subject: [PATCH] fix: pass Name to override using CID --- api/s5/file.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/s5/file.go b/api/s5/file.go index 0a2affc..08f0a3b 100644 --- a/api/s5/file.go +++ b/api/s5/file.go @@ -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, })) }