Skip to main content

BaseObjectStorage

object_exists

Check if the object exists in the storage. Parameters:
  • file_path (PurePath): The path to the object in the storage.
Returns: bool: True if the object exists, False otherwise.

canonicalize_path

put_file

Put a file to the object storage. Parameters:
  • file_path (PurePath): The path to the object in the storage.
  • file (File): The file to be put.

get_file

Get a file from the object storage. Parameters:
  • file_path (PurePath): The path to the object in the storage.
Returns: File: The file object get from the storage.

upload_file

Upload a local file to the object storage. Parameters:
  • local_file_path (Path): The path to the local file to be uploaded.
  • remote_file_path (PurePath): The path to the object in storage.

download_file

Download a file from the object storage to the local system. Parameters:
  • local_file_path (Path): The path to the local file to be saved.
  • remote_file_path (PurePath): The path to the object in storage.

_put_file

_get_file

_object_exists

_upload_file

_download_file