Skip to content

Commit 6b0f196

Browse files
committed
chore(Storage/Local): drop unused method addLocalFolder
Signed-off-by: Josh <josh.t.richards@gmail.com>
1 parent d80a3a7 commit 6b0f196

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

lib/private/Files/Storage/Common.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -255,23 +255,6 @@ public function getLocalFile(string $path): string|false {
255255
return $this->getCachedFile($path);
256256
}
257257

258-
private function addLocalFolder(string $path, string $target): void {
259-
$dh = $this->opendir($path);
260-
if (is_resource($dh)) {
261-
while (($file = readdir($dh)) !== false) {
262-
if (!Filesystem::isIgnoredDir($file)) {
263-
if ($this->is_dir($path . '/' . $file)) {
264-
mkdir($target . '/' . $file);
265-
$this->addLocalFolder($path . '/' . $file, $target . '/' . $file);
266-
} else {
267-
$tmp = $this->toTmpFile($path . '/' . $file);
268-
rename($tmp, $target . '/' . $file);
269-
}
270-
}
271-
}
272-
}
273-
}
274-
275258
protected function searchInDir(string $query, string $dir = ''): array {
276259
$files = [];
277260
$dh = $this->opendir($dir);

0 commit comments

Comments
 (0)