mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
dont error when working with empty file names
This commit is contained in:
parent
ed09f6c0b7
commit
80921d69f5
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ class NativeFileInfo implements IFileInfo {
|
||||||
public function isHidden() {
|
public function isHidden() {
|
||||||
$mode = $this->getMode();
|
$mode = $this->getMode();
|
||||||
if ($mode > 0x80) {
|
if ($mode > 0x80) {
|
||||||
return $this->name[0] === '.';
|
return strlen($this->name) > 0 && $this->name[0] === '.';
|
||||||
} else {
|
} else {
|
||||||
return (bool)($mode & IFileInfo::MODE_HIDDEN);
|
return (bool)($mode & IFileInfo::MODE_HIDDEN);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue