cterasdk.core.files.io module#
- cterasdk.core.files.io.copy(core, *paths, destination=None)#
- cterasdk.core.files.io.handle(path)#
Create function to retrieve file handle.
- Parameters:
path (cterasdk.cio.edge.CorePath) – Path to file.
- Returns:
Callable function to retrieve file handle.
- Return type:
callable
- cterasdk.core.files.io.handle_many(directory, *objects)#
Create function to retrieve zip archive
- Parameters:
directory (cterasdk.cio.edge.CorePath) – Path to directory.
objects (args) – List of files and folders.
- Returns:
Callable function to retrieve file handle.
- Return type:
callable
- cterasdk.core.files.io.listdir(core, path, depth=None, include_deleted=False, search_criteria=None, limit=None)#
- cterasdk.core.files.io.makedirs(core, path)#
- cterasdk.core.files.io.mkdir(core, path)#
- cterasdk.core.files.io.move(core, *paths, destination=None)#
- cterasdk.core.files.io.public_link(core, path, access, expire_in)#
- cterasdk.core.files.io.recover(core, *paths)#
- cterasdk.core.files.io.remove(core, *paths)#
- cterasdk.core.files.io.rename(core, path, name)#
- cterasdk.core.files.io.retrieve_remote_dir(core, directory)#
- cterasdk.core.files.io.root(core, path)#
- cterasdk.core.files.io.upload(name, size, destination, fd)#
Create upload function
- Parameters:
name (str) – File name.
destination (cterasdk.cio.core.CorePath) – Path to directory.
fd (object) – File handle.
- Returns:
Callable function to start the upload.
- Return type:
callable
- cterasdk.core.files.io.versions(core, path)#
- cterasdk.core.files.io.walk(core, scope, path, include_deleted=False)#