mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 09:14:06 +02:00
Ignore ATTR_NOT_CONTENT_INDEXED
See: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-smb/65e0c225-5925-44b0-8104-6b91339c709f I'm not sure if this runs into other issues. But I ran into several servers that have 0x2000 set. (so don't index) but still just use the normal directory modes etc (0x10) instead of (0x4000)
This commit is contained in:
parent
8155f78d00
commit
3dff9193a3
1 changed files with 5 additions and 0 deletions
|
|
@ -108,6 +108,11 @@ class NativeFileInfo implements IFileInfo {
|
|||
* @return int
|
||||
*/
|
||||
protected function getMode() {
|
||||
$mode = $this->stat()['mode'];
|
||||
|
||||
// Let us ignore the ATTR_NOT_CONTENT_INDEXED for now
|
||||
$mode &= ~0x00002000;
|
||||
|
||||
return $this->stat()['mode'];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue