Lines Matching refs: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)
277 def _check_zip_path(name): argument
278 if os.path.normpath(name) != name:
279 raise Exception('Non-canonical zip path: %s' % name)
280 if os.path.isabs(name):
281 raise Exception('Absolute zip path: %s' % name)
284 def _is_symlink(zip_file, name): argument
285 zi = zip_file.getinfo(name)
307 for name in z.namelist():
308 if name.endswith('/'):
309 make_directory(os.path.join(path, name))
312 if not fnmatch.fnmatch(name, pattern):
314 if predicate and not predicate(name):
316 _check_zip_path(name)
318 output_path = os.path.join(path, name)
321 (zip_path, name, output_path))
322 if _is_symlink(z, name):
323 dest = os.path.join(path, name)
325 os.symlink(z.read(name), dest)
328 z.extract(name, path)
329 extracted.append(os.path.join(path, name))