mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 09:14:06 +02:00
parent
7fc664a327
commit
444cc1cdfb
1 changed files with 3 additions and 8 deletions
|
|
@ -114,14 +114,9 @@ class NativeFileInfo implements IFileInfo {
|
||||||
*/
|
*/
|
||||||
protected function getMode() {
|
protected function getMode() {
|
||||||
if (!$this->modeCache) {
|
if (!$this->modeCache) {
|
||||||
$stat = $this->stat();
|
$attribute = $this->share->getAttribute($this->path, 'system.dos_attr.mode');
|
||||||
if (isset($stat['mode'])) {
|
// parse hex string
|
||||||
$this->modeCache = ($stat['mode']);
|
$this->modeCache = (int)hexdec(substr($attribute, 2));
|
||||||
} else {
|
|
||||||
$attribute = $this->share->getAttribute($this->path, 'system.dos_attr.mode');
|
|
||||||
// parse hex string
|
|
||||||
$this->modeCache = (int)hexdec(substr($attribute, 2));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return $this->modeCache;
|
return $this->modeCache;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue