gws_core

Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version

Compress

Abstract class for compress class

Attributes
destination_file_path: str
Functions
__init__

Initialize self. See help(type(self)) for accurate signature.

destination_file_path : str
add_dir
dir_path : str
dir_name : str
add_file
file_path : str
file_name : str
add_fs_node
fs_node_path : str
fs_node_name : str
close
Return type : str
can_uncompress_file @classmethod

Return true if the file can be uncompressed by this class

file_path : str
Return type : bool
compress_dir @classmethod

Compress a folder into a tar.gz file.

dir_path : str
destination_file_path : str
Path of the tar.gz file to create
decompress @classmethod

Uncompress a tar.gz file.

file_path : str
destination_folder : str
get_supported_extensions @classmethod

Return the list of supported extensions for this compress class without '.'

Return type : Set
get_all_supported_extensions @staticmethod

Return the list of all supported extensions without '.'

Return type : Set
is_compressed_file @staticmethod

Check if the file is a compressed file.

file_path : str
Return type : bool
smart_decompress @staticmethod

Detect the extension of the compressed file and use the right decompress method.

file_path : str
destination_folder : str