Browse Source
Fix GDrive test rename overwrite folder
pull/333/head
Vincent Petry
10 years ago
No known key found for this signature in database
GPG Key ID: AF8F9EFC56562186
1 changed files with
2 additions and
2 deletions
-
apps/files_external/lib/Lib/Storage/Google.php
|
|
|
@ -168,11 +168,11 @@ class Google extends \OC\Files\Storage\Common { |
|
|
|
$path = trim($path, '/'); |
|
|
|
$this->driveFiles[$path] = $file; |
|
|
|
if ($file === false) { |
|
|
|
// Set all child paths as false
|
|
|
|
// Remove all children
|
|
|
|
$len = strlen($path); |
|
|
|
foreach ($this->driveFiles as $key => $file) { |
|
|
|
if (substr($key, 0, $len) === $path) { |
|
|
|
$this->driveFiles[$key] = false; |
|
|
|
unset($this->driveFiles[$key]); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|