From 00157da765f1014864ae4cb58a572adb4a7524dd Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 13 Mar 2026 11:34:25 -0400 Subject: [PATCH] chore(Storage/Local): drop unused method addLocalFolder Signed-off-by: Josh --- lib/private/Files/Storage/Common.php | 17 ----------------- 1 file changed, 17 deletions(-) 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);