diff --git a/src/Native/NativeFileInfo.php b/src/Native/NativeFileInfo.php index 880d74a..40213c2 100644 --- a/src/Native/NativeFileInfo.php +++ b/src/Native/NativeFileInfo.php @@ -114,14 +114,9 @@ public function isDirectory() { */ protected function getMode() { if (!$this->modeCache) { - $stat = $this->stat(); - if (isset($stat['mode'])) { - $this->modeCache = ($stat['mode']); - } else { - $attribute = $this->share->getAttribute($this->path, 'system.dos_attr.mode'); - // parse hex string - $this->modeCache = (int)hexdec(substr($attribute, 2)); - } + $attribute = $this->share->getAttribute($this->path, 'system.dos_attr.mode'); + // parse hex string + $this->modeCache = (int)hexdec(substr($attribute, 2)); } return $this->modeCache; }