check_key¶
- check_key(location: str, key: str) bool [source]¶
Check if object key exists at specified location.
Method will check in the S3 bucket if the location begins with the s3:// protocol, otherwise it assumes the location is a local path.
- Parameters:
location – Object location (local path or S3 bucket).
key – Object key.
- Returns:
True if the object exists in the location, False otherwise.