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() {
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue