如何取消掉 云盘系统的文件锁功能判断:
/lib/private/Files/View.php
在找到 代码
protected function shouldLockFile($path) {
return false; //增加这个直接返回false 不上锁;
$path = Filesystem::normalizePath($path);
$pathSegments = explode('/', $path);
if (isset($pathSegments[2])) {
// E.g.: /username/files/path-to-file
return ($pathSegments[2] === 'files') && (count($pathSegments) > 3);
}
return strpos($path, '/appdata_') !== 0;
}