Revert "Use stat to fetch mode"

This reverts commit 26ba16309d.
This commit is contained in:
Robin Appelman 2020-02-10 16:14:55 +01:00
commit 444cc1cdfb

View file

@ -114,15 +114,10 @@ class NativeFileInfo implements IFileInfo {
*/
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));
}
}
return $this->modeCache;
}