File tree Expand file tree Collapse file tree
lib/private/Files/Storage Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments