cloudmesh-cloud.cloudmesh.data.api.storage.LocalStorageProvider

Module Contents

Classes

LocalStorageProvider

A storage provider that uses a local file system or network drive path to store files.

class cloudmesh-cloud.cloudmesh.data.api.storage.LocalStorageProvider.LocalStorageProvider(storage_path)

Bases: cloudmesh.data.api.storage.StorageProviderABC

A storage provider that uses a local file system or network drive path to store files.

put(self, local_path)

Upload a new file.

Parameters

local_path – Path to a file that will be stored.

Returns

a CloudFile with resource information filled in

get(self, cloud_file, local_dest)

Download the file from the cloud_file.url to a local folder.

Parameters
  • cloud_file – A cloud file entry from the db.

  • local_dest – A local path where the cloud file will be downloaded.

delete(self, cloud_file)

Delete a file from the database

Parameters

cloud_file – the cloud file entry being deleted

exists(self, cloud_file_name)

Delete a file from the database

Parameters

cloud_file_name – the cloud file entry being deleted