equal
deleted
inserted
replaced
468 self.opener = self.vfs |
468 self.opener = self.vfs |
469 |
469 |
470 def join(self, f): |
470 def join(self, f): |
471 return self.pathsep + self.encode(f) |
471 return self.pathsep + self.encode(f) |
472 |
472 |
|
473 def getsize(self, path): |
|
474 return self.rawvfs.stat(path).st_size |
|
475 |
473 def datafiles(self): |
476 def datafiles(self): |
474 rewrite = False |
477 rewrite = False |
475 existing = [] |
478 existing = [] |
476 getstat = self.rawvfs.stat |
|
477 for f in sorted(self.fncache): |
479 for f in sorted(self.fncache): |
478 ef = self.encode(f) |
480 ef = self.encode(f) |
479 try: |
481 try: |
480 yield f, ef, getstat(ef).st_size |
482 yield f, ef, self.getsize(ef) |
481 existing.append(f) |
483 existing.append(f) |
482 except OSError, err: |
484 except OSError, err: |
483 if err.errno != errno.ENOENT: |
485 if err.errno != errno.ENOENT: |
484 raise |
486 raise |
485 # nonexistent entry |
487 # nonexistent entry |