fix: need to pass tus
This commit is contained in:
parent
2e9694149b
commit
4db07d5170
|
@ -336,6 +336,7 @@ func (f *S5File) ReadDir(n int) ([]fs.DirEntry, error) {
|
|||
Metadata: f.metadata,
|
||||
Hash: file.File.CID().Hash.HashBytes(),
|
||||
Type: file.File.CID().Type,
|
||||
Tus: f.tus,
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
|
@ -1841,6 +1841,7 @@ func (s *S5API) newFile(params FileParams) *S5File {
|
|||
params.Protocol = s.protocol
|
||||
params.Metadata = s.metadata
|
||||
params.Storage = s.storage
|
||||
params.Tus = s.tusHandler
|
||||
|
||||
return NewFile(params)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue