archive
archive(lzma_fn, inputs, rename_func=None, check=True, overwrite=False)Create a lzma compressed tar file from a list of files and/or directories.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| lzma_fn | str | The name of the lzma file to be created. | required |
| inputs | str or list of str | A file or directory or a list of files and/or directories to be added to the tar file. | required |
| rename_func | function or None | A function to rename the files in the tar file. | None |
| check | bool | If True, check if the lzma file is correct. The default is True. | True |
| overwrite | bool | If True, overwrite the lzma file if it exists. If False, do not overwrite the lzma file if it exists. | False |