/** * @return int */ protected function getMode() { if (!$this->modeCache) { $attribute = $this->share->getAttribute($this->path, 'system.dos_attr.mode'); // parse hex string $this->modeCache = (int) hexdec(substr($attribute, 2)); } return $this->modeCache; }