diff --git a/api/s5/file.go b/api/s5/file.go index 9246a87..cabd120 100644 --- a/api/s5/file.go +++ b/api/s5/file.go @@ -308,6 +308,10 @@ func (s S5FileInfo) ModTime() time.Time { } func (s S5FileInfo) IsDir() bool { + if s.file.name == "." { + return true + } + return s.file.typ == types.CIDTypeDirectory }