• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching full:targetpath

2126     def _extract_member(self, tarinfo, targetpath, set_attrs=True,  argument
2129 file called targetpath.
2134 targetpath = targetpath.rstrip("/")
2135 targetpath = targetpath.replace("/", os.sep)
2138 upperdirs = os.path.dirname(targetpath)
2150 self.makefile(tarinfo, targetpath)
2152 self.makedir(tarinfo, targetpath)
2154 self.makefifo(tarinfo, targetpath)
2156 self.makedev(tarinfo, targetpath)
2158 self.makelink(tarinfo, targetpath)
2160 self.makeunknown(tarinfo, targetpath)
2162 self.makefile(tarinfo, targetpath)
2165 self.chown(tarinfo, targetpath, numeric_owner)
2167 self.chmod(tarinfo, targetpath)
2168 self.utime(tarinfo, targetpath)
2175 def makedir(self, tarinfo, targetpath): argument
2176 """Make a directory called targetpath.
2181 os.mkdir(targetpath, 0o700)
2185 def makefile(self, tarinfo, targetpath): argument
2186 """Make a file called targetpath.
2191 with bltn_open(targetpath, "wb") as target:
2201 def makeunknown(self, tarinfo, targetpath): argument
2203 at targetpath.
2205 self.makefile(tarinfo, targetpath)
2209 def makefifo(self, tarinfo, targetpath): argument
2210 """Make a fifo called targetpath.
2213 os.mkfifo(targetpath)
2217 def makedev(self, tarinfo, targetpath): argument
2218 """Make a character or block device called targetpath.
2229 os.mknod(targetpath, mode,
2232 def makelink(self, tarinfo, targetpath): argument
2233 """Make a (symbolic) link called targetpath. If it cannot be created
2240 if os.path.lexists(targetpath):
2242 os.unlink(targetpath)
2243 os.symlink(tarinfo.linkname, targetpath)
2247 os.link(tarinfo._link_target, targetpath)
2250 targetpath)
2254 targetpath)
2258 def chown(self, tarinfo, targetpath, numeric_owner): argument
2259 """Set owner of targetpath according to tarinfo. If numeric_owner
2281 os.lchown(targetpath, u, g)
2283 os.chown(targetpath, u, g)
2287 def chmod(self, tarinfo, targetpath): argument
2288 """Set file permissions of targetpath according to tarinfo.
2291 os.chmod(targetpath, tarinfo.mode)
2295 def utime(self, tarinfo, targetpath): argument
2296 """Set modification time of targetpath according to tarinfo.
2301 os.utime(targetpath, (tarinfo.mtime, tarinfo.mtime))