Merge pull request #25010 from owncloud/gdrive-fix-tests
Fix GDrive test rename overwrite folder
This commit is contained in:
commit
09261fca86
|
@ -168,11 +168,11 @@ class Google extends \OC\Files\Storage\Common {
|
||||||
$path = trim($path, '/');
|
$path = trim($path, '/');
|
||||||
$this->driveFiles[$path] = $file;
|
$this->driveFiles[$path] = $file;
|
||||||
if ($file === false) {
|
if ($file === false) {
|
||||||
// Set all child paths as false
|
// Remove all children
|
||||||
$len = strlen($path);
|
$len = strlen($path);
|
||||||
foreach ($this->driveFiles as $key => $file) {
|
foreach ($this->driveFiles as $key => $file) {
|
||||||
if (substr($key, 0, $len) === $path) {
|
if (substr($key, 0, $len) === $path) {
|
||||||
$this->driveFiles[$key] = false;
|
unset($this->driveFiles[$key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue