diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php index 696232da64fa0..c4ea2c25ae773 100644 --- a/lib/private/Files/Storage/Common.php +++ b/lib/private/Files/Storage/Common.php @@ -253,23 +253,6 @@ public function getLocalFile(string $path): string|false { return $this->getCachedFile($path); } - private function addLocalFolder(string $path, string $target): void { - $dh = $this->opendir($path); - if (is_resource($dh)) { - while (($file = readdir($dh)) !== false) { - if (!Filesystem::isIgnoredDir($file)) { - if ($this->is_dir($path . '/' . $file)) { - mkdir($target . '/' . $file); - $this->addLocalFolder($path . '/' . $file, $target . '/' . $file); - } else { - $tmp = $this->toTmpFile($path . '/' . $file); - rename($tmp, $target . '/' . $file); - } - } - } - } - } - protected function searchInDir(string $query, string $dir = ''): array { $files = []; $dh = $this->opendir($dir);