INNER CODE UNIT · Python

Extract

DaemonEngine/Daemon · external_deps/cygtar.py:282

  def Extract(self):
    """Extract the tarfile to the current directory."""
    try_mklink = True

    if self.verbose:
      sys.stdout.write('|' + ('-' * 48) + '|\n')
      sys.stdout.flush()
      div = float(len(self.tar.getmembers())) / 50.0
      dots = 0
      cnt = 0

    for m in self.tar:
      if self.verbose:
        cnt += 1
        while float(dots) * div < float(cnt):
          dots += 1
          sys.stdout.write('.')
          sys.stdout.flush()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…