Lines Matching refs:base_dir
899 def _make_tarball(base_name, base_dir, compress="gzip", verbose=0, dry_run=0,
902 'base_dir'.
957 arcname = base_dir
959 base_dir = os.path.join(root_dir, base_dir)
961 tar.add(base_dir, arcname, filter=_set_uid_gid)
969 def _make_zipfile(base_name, base_dir, verbose=0, dry_run=0,
971 """Create a zip file from all the files under 'base_dir'.
989 zip_filename, base_dir)
994 arcname = os.path.normpath(base_dir)
996 base_dir = os.path.join(root_dir, base_dir)
997 base_dir = os.path.normpath(base_dir)
999 zf.write(base_dir, arcname)
1001 logger.info("adding '%s'", base_dir)
1002 for dirpath, dirnames, filenames in os.walk(base_dir):
1083 def make_archive(base_name, format, root_dir=None, base_dir=None, verbose=0,
1093 archive. 'base_dir' is the directory where we start archiving from;
1094 ie. 'base_dir' will be the common prefix of all files and
1095 directories in the archive. 'root_dir' and 'base_dir' both default
1101 sys.audit("shutil.make_archive", base_name, format, root_dir, base_dir)
1114 if base_dir is None:
1115 base_dir = os.curdir
1133 filename = func(base_name, base_dir, **kwargs)