From 2cc42f16db8780e22f92926ff1241113ed15e97e Mon Sep 17 00:00:00 2001 From: Mathieu Date: Wed, 12 Jun 2024 10:21:38 +0200 Subject: [PATCH] Dont check for directories for files --- src/UploadcareAdapter.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/UploadcareAdapter.php b/src/UploadcareAdapter.php index de480c6..977f597 100755 --- a/src/UploadcareAdapter.php +++ b/src/UploadcareAdapter.php @@ -76,6 +76,10 @@ public function fileExists(string $path): bool */ public function directoryExists(string $path): bool { + if (!str_contains($path, '~')) { + return false; + } + try { $this->api->group()->groupInfo($path); } catch (\Uploadcare\Exception\HttpException $e) {