public function isDirectory($path) { $result = $this->client->listObjects(array('Bucket' => $this->bucket, 'Prefix' => $this->computePath($path), 'MaxKeys' => 1)); return count($result) > 0; }