phuclh / flysystem-imagekit

A flysystem driver for Imagekit
MIT License
2 stars 1 forks source link

Invalid value for includeFolder parameter. #11

Open mhmiton opened 1 year ago

mhmiton commented 1 year ago
public function fileExists(string $path): bool
{
        $filePath = $this->getFileFolderName($path);

        // Search for files
        $file = $this->client->listFiles([
            'name' => $filePath['fileName'],
            'path' => $filePath['directory'],
            'includeFolder' => true,
        ]);

        return ! empty($file->success);
}

This script return an error:

image