Lines Matching refs:name
156 subprocess.check_call(['prog', '--output', tmp_file.name])
170 and filecmp.cmp(f.name, path)):
171 shutil.move(f.name, path)
173 if os.path.exists(f.name):
174 os.unlink(f.name)
289 def _check_zip_path(name):
290 if os.path.normpath(name) != name:
291 raise Exception('Non-canonical zip path: %s' % name)
292 if os.path.isabs(name):
293 raise Exception('Absolute zip path: %s' % name)
296 def _is_symlink(zip_file, name):
297 zi = zip_file.getinfo(name)
319 for name in z.namelist():
320 if name.endswith('/'):
321 make_directory(os.path.join(path, name))
324 if not fnmatch.fnmatch(name, pattern):
326 if predicate and not predicate(name):
328 _check_zip_path(name)
330 output_path = os.path.join(path, name)
333 (zip_path, name, output_path))
334 if _is_symlink(z, name):
335 dest = os.path.join(path, name)
337 os.symlink(z.read(name), dest)
340 z.extract(name, path)
341 extracted.append(os.path.join(path, name))