Lines Matching refs:filename
440 def UnzipTemp(filename, pattern=None): argument
453 def unzip_to_dir(filename, dirname): argument
454 cmd = ["unzip", "-o", "-q", filename, "-d", dirname]
461 (filename,))
463 m = re.match(r"^(.*[.]zip)\+(.*[.]zip)$", filename, re.IGNORECASE)
467 filename = m.group(1)
469 unzip_to_dir(filename, tmp)
471 return tmp, zipfile.ZipFile(filename, "r")
847 def ZipWrite(zip_file, filename, arcname=None, perms=0o644, argument
866 arcname = filename
868 saved_stat = os.stat(filename)
873 os.chmod(filename, perms)
878 os.utime(filename, (timestamp, timestamp))
880 zip_file.write(filename, arcname=arcname, compress_type=compress_type)
882 os.chmod(filename, saved_stat.st_mode)
883 os.utime(filename, (saved_stat.st_atime, saved_stat.st_mtime))
904 zinfo = zipfile.ZipInfo(filename=zinfo_or_arcname)