def create_tar (archive, compression, cmd, verbosity, interactive, filenames):
    """Create a TAR archive."""
    cmdlist = [cmd, '--create']
    add_tar_opts(cmdlist, compression, verbosity)
    cmdlist.extend(["--file", archive, '--'])
    cmdlist.extend(filenames)
    return cmdlist
def create_tar ( archive , compression , cmd , verbosity , interactive , filenames ) : cmdlist = [ cmd , '--create' ] add_tar_opts ( cmdlist , compression , verbosity ) cmdlist . extend ( [ "--file" , archive , '--' ] ) cmdlist . extend ( filenames ) return cmdlist
Create a TAR archive.