Skip to content

Commit

Permalink
Added directoryExists().
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Jul 6, 2022
1 parent 9bc8d54 commit ae5c3a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ public function __construct($config = [])
$this->client->setConnectTimeout($connectTimeout);
}

public function directoryExists(string $path): bool
{
return $this->client->doesObjectExist($this->bucket, $path);
}

public function fileExists(string $path): bool
{
return $this->client->doesObjectExist($this->bucket, $path);
Expand Down

0 comments on commit ae5c3a1

Please sign in to comment.