• Home
  • Raw
  • Download

Lines Matching full:targetpath

2139     def _extract_member(self, tarinfo, targetpath, set_attrs=True,  argument
2142 file called targetpath.
2147 targetpath = targetpath.rstrip("/")
2148 targetpath = targetpath.replace("/", os.sep)
2151 upperdirs = os.path.dirname(targetpath)
2163 self.makefile(tarinfo, targetpath)
2165 self.makedir(tarinfo, targetpath)
2167 self.makefifo(tarinfo, targetpath)
2169 self.makedev(tarinfo, targetpath)
2171 self.makelink(tarinfo, targetpath)
2173 self.makeunknown(tarinfo, targetpath)
2175 self.makefile(tarinfo, targetpath)
2178 self.chown(tarinfo, targetpath, numeric_owner)
2180 self.chmod(tarinfo, targetpath)
2181 self.utime(tarinfo, targetpath)
2188 def makedir(self, tarinfo, targetpath): argument
2189 """Make a directory called targetpath.
2194 os.mkdir(targetpath, 0o700)
2198 def makefile(self, tarinfo, targetpath): argument
2199 """Make a file called targetpath.
2204 with bltn_open(targetpath, "wb") as target:
2214 def makeunknown(self, tarinfo, targetpath): argument
2216 at targetpath.
2218 self.makefile(tarinfo, targetpath)
2222 def makefifo(self, tarinfo, targetpath): argument
2223 """Make a fifo called targetpath.
2226 os.mkfifo(targetpath)
2230 def makedev(self, tarinfo, targetpath): argument
2231 """Make a character or block device called targetpath.
2242 os.mknod(targetpath, mode,
2245 def makelink(self, tarinfo, targetpath): argument
2246 """Make a (symbolic) link called targetpath. If it cannot be created
2253 if os.path.lexists(targetpath):
2255 os.unlink(targetpath)
2256 os.symlink(tarinfo.linkname, targetpath)
2260 os.link(tarinfo._link_target, targetpath)
2263 targetpath)
2267 targetpath)
2271 def chown(self, tarinfo, targetpath, numeric_owner): argument
2272 """Set owner of targetpath according to tarinfo. If numeric_owner
2294 os.lchown(targetpath, u, g)
2296 os.chown(targetpath, u, g)
2300 def chmod(self, tarinfo, targetpath): argument
2301 """Set file permissions of targetpath according to tarinfo.
2304 os.chmod(targetpath, tarinfo.mode)
2308 def utime(self, tarinfo, targetpath): argument
2309 """Set modification time of targetpath according to tarinfo.
2314 os.utime(targetpath, (tarinfo.mtime, tarinfo.mtime))