Lines Matching full:targetpath
2379 def _extract_member(self, tarinfo, targetpath, set_attrs=True, argument
2382 file called targetpath.
2387 targetpath = targetpath.rstrip("/")
2388 targetpath = targetpath.replace("/", os.sep)
2391 upperdirs = os.path.dirname(targetpath)
2403 self.makefile(tarinfo, targetpath)
2405 self.makedir(tarinfo, targetpath)
2407 self.makefifo(tarinfo, targetpath)
2409 self.makedev(tarinfo, targetpath)
2411 self.makelink(tarinfo, targetpath)
2413 self.makeunknown(tarinfo, targetpath)
2415 self.makefile(tarinfo, targetpath)
2418 self.chown(tarinfo, targetpath, numeric_owner)
2420 self.chmod(tarinfo, targetpath)
2421 self.utime(tarinfo, targetpath)
2428 def makedir(self, tarinfo, targetpath): argument
2429 """Make a directory called targetpath.
2434 os.mkdir(targetpath)
2438 os.mkdir(targetpath, 0o700)
2442 def makefile(self, tarinfo, targetpath): argument
2443 """Make a file called targetpath.
2448 with bltn_open(targetpath, "wb") as target:
2458 def makeunknown(self, tarinfo, targetpath): argument
2460 at targetpath.
2462 self.makefile(tarinfo, targetpath)
2466 def makefifo(self, tarinfo, targetpath): argument
2467 """Make a fifo called targetpath.
2470 os.mkfifo(targetpath)
2474 def makedev(self, tarinfo, targetpath): argument
2475 """Make a character or block device called targetpath.
2489 os.mknod(targetpath, mode,
2492 def makelink(self, tarinfo, targetpath): argument
2493 """Make a (symbolic) link called targetpath. If it cannot be created
2500 if os.path.lexists(targetpath):
2502 os.unlink(targetpath)
2503 os.symlink(tarinfo.linkname, targetpath)
2506 os.link(tarinfo._link_target, targetpath)
2509 targetpath)
2513 targetpath)
2517 def chown(self, tarinfo, targetpath, numeric_owner): argument
2518 """Set owner of targetpath according to tarinfo. If numeric_owner
2544 os.lchown(targetpath, u, g)
2546 os.chown(targetpath, u, g)
2550 def chmod(self, tarinfo, targetpath): argument
2551 """Set file permissions of targetpath according to tarinfo.
2556 os.chmod(targetpath, tarinfo.mode)
2560 def utime(self, tarinfo, targetpath): argument
2561 """Set modification time of targetpath according to tarinfo.
2569 os.utime(targetpath, (mtime, mtime))