cterasdk.lib.filesystem module#

class cterasdk.lib.filesystem.FileSystem#

Bases: object

static compute_zip_file_name(cloud_directory, files)#
copyfile(src, dst)#
static exists(filepath)#
static expanduser(path)#
get_dirpath()#
static get_local_file_info(local_file)#
static instance()#
static join(*paths)#
rename(dirpath, src, dst)#
save(dirpath, filename, handle)#
static split_file_directory(path)#
static split_file_directory_with_defaults(path=None, default_filename=None)#

Compute the destination file path.

Parameters:
  • path (str) – A path to a file or a folder

  • default_filename (str) – The default file name to use unless path argument specifies a file path

Returns:

A tuple including the destination directory and filename

Return type:

(string, string)

validate_directory(dirpath)#
static version(filename, version)#
static write(filepath, handle)#