X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=mdref%2FEntry.php;h=9135dd788479e04d44e7510fee0cc668948ca95e;hb=80ea76521e2ccbbfac1ac0f33f91af1739ead561;hp=4febd764604b678ba9e1f658b3ff3d895b479e2c;hpb=ba46a6cdffd56d99c191b8fa9a510cf7c6af45bd;p=mdref%2Fmdref diff --git a/mdref/Entry.php b/mdref/Entry.php index 4febd76..9135dd7 100644 --- a/mdref/Entry.php +++ b/mdref/Entry.php @@ -236,8 +236,10 @@ class Entry implements \IteratorAggregate { ($loose && glob($this->getBasename() . "/*/$glob")); } elseif ($this->isRoot()) { return true; - } else { + } elseif ($this->getBasename() !== "/") { return is_dir($this->getBasename()); + } else { + return false; } }