cloudmesh-storage.cloudmesh.storage.provider.azureblob.Provider
¶
Module Contents¶
Classes¶
-
class
cloudmesh-storage.cloudmesh.storage.provider.azureblob.Provider.
Provider
(service=None)¶ Bases:
cloudmesh.abstract.StorageABC.StorageABC
-
kind
= azureblob¶
-
sample
¶
-
output
¶
-
update_dict
(self, elements, func=None)¶
-
cloud_path
(self, srv_path)¶
-
local_path
(self, source_path)¶
-
get
(self, source=None, destination=None, recursive=False)¶ Downloads file from Destination(Service) to Source(local)
- Parameters
source – the source can be a directory or file
destination – the destination can be a directory or file
recursive – in case of directory the recursive refers to all subdirectories in the specified source
- Returns
dict
-
put
(self, source=None, destination=None, recursive=False)¶ Uploads file from Source(local) to Destination(Service)
- Parameters
source – the source can be a directory or file
destination – the destination can be a directory or file
recursive – in case of directory the recursive refers to all subdirectories in the specified source
- Returns
dict
-
delete
(self, source=None, recursive=False)¶ Deletes the source from cloud service
- Parameters
source – the source can be a directory or file
- Returns
None
-
create_dir
(self, directory=None)¶ Creates a directory in the cloud service
- Parameters
directory – directory is a folder
- Returns
dict
-
search
(self, directory=None, filename=None, recursive=False)¶ searches the filename in the directory
- Parameters
directory – directory on cloud service
filename – filename to be searched
recursive – in case of directory the recursive refers to all subdirectories in the specified directory
- Returns
dict
-
list
(self, source=None, dir_only=False, recursive=False)¶ lists all files specified in the source
- Parameters
source – this can be a file or directory
recursive – in case of directory the recursive refers to all subdirectories in the specified source
dir_only – boolean, enlist only directories
- Returns
dict
-