SilverStripe\Assets\Flysystem\GeneratedAssets::checkOrCreate
Check if the file exists or that the $callback provided was able to regenerate it.
Signature
protected function checkOrCreate(string
$filename,
[callable
$callback = NULL] )
Parameters
$filename
— string$callback
— object
Returns
- bool
- Whether or not the file exists
Errors/Exceptions
-
Exception
- If an error has occurred during save