cterasdk.cio.edge.commands module#

class cterasdk.cio.edge.commands.Copy#

Bases: EdgeCommand

get_parameter()#
class cterasdk.cio.edge.commands.CreateDirectory(function, receiver, path, parents=False)#

Bases: EdgeCommand

Create Directory

get_parameter()#
class cterasdk.cio.edge.commands.Delete(function, receiver, path)#

Bases: EdgeCommand

class cterasdk.cio.edge.commands.Download(function, receiver, path, destination)#

Bases: EdgeCommand

get_parameter()#
class cterasdk.cio.edge.commands.DownloadMany(function, receiver, target, objects, destination)#

Bases: EdgeCommand

get_parameter()#
class cterasdk.cio.edge.commands.EnsureDirectory(function, receiver, path, suppress_error=False)#

Bases: EdgeCommand

class cterasdk.cio.edge.commands.GetMetadata(function, receiver, path, suppress_error=False)#

Bases: ListDirectory

class cterasdk.cio.edge.commands.ListDirectory(function, receiver, path, depth=None)#

Bases: EdgeCommand

List

class cterasdk.cio.edge.commands.Move#

Bases: Copy

class cterasdk.cio.edge.commands.Open(function, receiver, path)#

Bases: EdgeCommand

Open file

get_parameter()#
class cterasdk.cio.edge.commands.OpenMany(function, receiver, directory, *objects)#

Bases: EdgeCommand

get_parameter()#
class cterasdk.cio.edge.commands.PathResolver(listdir, receiver, destination, default)#

Bases: object

async a_resolve()#
resolve()#
class cterasdk.cio.edge.commands.RecursiveIterator(function, receiver, path)#

Bases: object

async a_generate()#
generate()#
class cterasdk.cio.edge.commands.Rename#

Bases: Move

class cterasdk.cio.edge.commands.Upload(function, receiver, listdir, destination, fd, name)#

Bases: EdgeCommand

get_parameter()#
async cterasdk.cio.edge.commands.a_split_file_directory(listdir, receiver, destination)#

Split a path into its parent directory and final component.

Returns:

tuple[str, str]: A (parent_directory, name) tuple when:

  • The path refers to an existing file

  • The path refers to an existing directory

  • The parent directory of the path exists

Raises:

cterasdk.exceptions.io.edge.GetMetadataError – If neither the path nor its parent directory exist.

cterasdk.cio.edge.commands.split_file_directory(listdir, receiver, destination)#

Split a path into its parent directory and final component.

Returns:

tuple[str, str]: A (parent_directory, name) tuple when:

  • The path refers to an existing file

  • The path refers to an existing directory

  • The parent directory of the path exists

Raises:

cterasdk.exceptions.io.edge.GetMetadataError – If neither the path nor its parent directory exist.