Attachment/AttachmentHandler.php
public function fileExists($key)
    {
        $fileKey = $this->getFileKey($key);
        $storage = $this->getStorage($fileKey->getStorageName());
        
        return $storage->getFilesystem()->has($this->getStoragePath($storage, $fileKey));
    }
public function fileExists($key)
    {
        $fileKey = $this->getFileKey($key);
        $storage = $this->getStorage($fileKey->getStorageName());
        
        return $storage->getFilesystem()->has($this->getStoragePath($storage, $fileKey));
    }
public function fileExists ( $ key ) { $ fileKey = $ this -> getFileKey ( $ key ) ; $ storage = $ this -> getStorage ( $ fileKey -> getStorageName ( ) ) ; return $ storage -> getFilesystem ( ) -> has ( $ this -> getStoragePath ( $ storage , $ fileKey ) ) ; }
Check if the given file exists inside its storage. Actually you should never have to do this unless you are
manipulating the storage by hand.

@throws InvalidKeyException              if the key cannot be parsed
@throws StorageDoesNotExistException     if the storage defined by the key is unknown

@param string $key

@return boolean
Check if the given file exists inside its storage . Actually you should never have to do this unless you are manipulating the storage by hand .