D | tarball.py | 30 def visit(tar, dirname, names): argument 35 tar.add(path, path_in_tar) 38 compresslevel=compression)) as tar: 43 visit(tar, dirpath, filenames) 46 tar.add(source_path, path_in_tar) # filename, arcname 51 with closing(tarfile.TarFile.open(tarball_path)) as tar: 52 tar.extractall(base_dir)
|