Skip to content

Commit

Permalink
Dont check for directories for files
Browse files Browse the repository at this point in the history
  • Loading branch information
Casmo committed Jun 12, 2024
1 parent d4f611e commit 2cc42f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/UploadcareAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2cc42f1

Please sign in to comment.