fix: if the filename is a . treat as a special case for a dir
This commit is contained in:
parent
bd29ab4612
commit
756a01d52f
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue