SilverStripe\Assets\File::exists
A file only exists if the file_exists() and is in the DB as a record
Use $file->isInDB() to only check for a DB record Use $file->File->exists() to only check if the asset exists
Signature
public function exists()
Returns
- bool