Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Commit 80921d6

Browse files
committed
dont error when working with empty file names
1 parent ed09f6c commit 80921d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Native/NativeFileInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function isReadOnly() {
141141
public function isHidden() {
142142
$mode = $this->getMode();
143143
if ($mode > 0x80) {
144-
return $this->name[0] === '.';
144+
return strlen($this->name) > 0 && $this->name[0] === '.';
145145
} else {
146146
return (bool)($mode & IFileInfo::MODE_HIDDEN);
147147
}

0 commit comments

Comments
 (0)