Skip to content

Commit 2cc42f1

Browse files
committed
Dont check for directories for files
1 parent d4f611e commit 2cc42f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/UploadcareAdapter.php

+4
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ public function fileExists(string $path): bool
7676
*/
7777
public function directoryExists(string $path): bool
7878
{
79+
if (!str_contains($path, '~')) {
80+
return false;
81+
}
82+
7983
try {
8084
$this->api->group()->groupInfo($path);
8185
} catch (\Uploadcare\Exception\HttpException $e) {

0 commit comments

Comments
 (0)