cloudmesh.abstract.StorageABC¶
Module Contents¶
Classes¶
-
class
cloudmesh.abstract.StorageABC.StorageABC(service=None)¶ -
abstract
create_dir(self, directory=None)¶ creates a directory
- Parameters
directory – the name of the directory
- Returns
dict
-
abstract
list(self, source=None, dir_only=False, recursive=False)¶ lists the information as dict
- Parameters
source – the source which either can be a directory or file
dir_only – Only the directory names
recursive – in case of directory the recursive refers to all subdirectories in the specified source
- Returns
dict
-
abstract
put(self, source=None, destination=None, recursive=False)¶ puts the source on the service
- Parameters
source – the source which either can be a directory or file
destination – the destination which either can be a directory or file
recursive – in case of directory the recursive refers to all subdirectories in the specified source
- Returns
dict
-
abstract
get(self, source=None, destination=None, recursive=False)¶ gets the destination and copies it in source
- Parameters
source – the source which either can be a directory or file
destination – the destination which either can be a directory or file
recursive – in case of directory the recursive refers to all subdirectories in the specified source
- Returns
dict
-
abstract
delete(self, source=None, recursive=False)¶ deletes the source
- Parameters
source – the source which either can be a directory or file
recursive – in case of directory the recursive refers to all subdirectories in the specified source
- Returns
dict
-
abstract
search(self, directory=None, filename=None, recursive=False)¶ gets the destination and copies it in source
- Parameters
directory – the directory which either can be a directory or file
recursive – in case of directory the recursive refers to all subdirectories in the specified source
- Returns
dict
-
tree(self, directory=None)¶ Prints a visual representation of the files and directories :param directory: :type directory: :return: :rtype:
-
abstract