public function fileExists(StorageFacilityParams $params, $fileid)
    {
        $this->validateFileID($fileid);
        return file_exists($this->generateStoragePath($params, $fileid));
    }
public function fileExists(StorageFacilityParams $params, $fileid)
    {
        $this->validateFileID($fileid);
        return file_exists($this->generateStoragePath($params, $fileid));
    }
public function fileExists ( StorageFacilityParams $ params , $ fileid ) { $ this -> validateFileID ( $ fileid ) ; return file_exists ( $ this -> generateStoragePath ( $ params , $ fileid ) ) ; }
Returns true if the file exists in the storage facility or
false if it doesn't exist. Throws an exception is the operation failed.

@param Site   $site   Site used to determine storage location
@param string $fileid File identifier of stored file, ex. /path/to/file.jpg

@return boolean
@throws StorageFacilityException if operation fails
Returns true if the file exists in the storage facility or false if it doesn t exist . Throws an exception is the operation failed .