Skip to content

Commit 53bc63a

Browse files
authored
Update LocalAdapter.php
Removed the creation of the folder since it is addressed in libraries/src/Image/Image.php as suggested by @Quy in the previous PR
1 parent 84a6d92 commit 53bc63a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

plugins/filesystem/local/src/Adapter/LocalAdapter.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,6 @@ public function createFile(string $name, string $path, $data): string
265265
return $name;
266266
}
267267

268-
if (!is_dir(dirname($thumbPaths['fs']))) {
269-
Folder::create(dirname($thumbPaths['fs']));
270-
}
271-
272268
// Create the thumbnail
273269
$this->createThumb($localPath, $thumbPaths['fs']);
274270
}
@@ -307,10 +303,6 @@ public function updateFile(string $name, string $path, $data)
307303
return;
308304
}
309305

310-
if (!is_dir(dirname($thumbPaths['fs']))) {
311-
Folder::create(dirname($thumbPaths['fs']));
312-
}
313-
314306
// Create the thumbnail
315307
$this->createThumb($localPath, $thumbPaths['fs']);
316308
}

0 commit comments

Comments
 (0)