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:
Roeland Jago Douma 2020-07-20 14:56:19 +02:00 committed by GitHub
commit 3dff9193a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'];
}