fix: if the filename is a . treat as a special case for a dir

This commit is contained in:
Derrick Hammer 2024-03-03 07:39:18 -05:00
parent bd29ab4612
commit 756a01d52f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -308,6 +308,10 @@ func (s S5FileInfo) ModTime() time.Time {
} }
func (s S5FileInfo) IsDir() bool { func (s S5FileInfo) IsDir() bool {
if s.file.name == "." {
return true
}
return s.file.typ == types.CIDTypeDirectory return s.file.typ == types.CIDTypeDirectory
} }