From 756a01d52f85b297eab184b137de268338053ade Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 3 Mar 2024 07:39:18 -0500 Subject: [PATCH] fix: if the filename is a . treat as a special case for a dir --- api/s5/file.go | 4 ++++ 1 file changed, 4 insertions(+) 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 }