diff --git a/src/Native/NativeFileInfo.php b/src/Native/NativeFileInfo.php index 093cbb3..5b98725 100644 --- a/src/Native/NativeFileInfo.php +++ b/src/Native/NativeFileInfo.php @@ -141,7 +141,7 @@ public function isReadOnly() { public function isHidden() { $mode = $this->getMode(); if ($mode > 0x80) { - return $this->name[0] === '.'; + return strlen($this->name) > 0 && $this->name[0] === '.'; } else { return (bool)($mode & IFileInfo::MODE_HIDDEN); }