X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fbup%2Fdrecurse.py;h=129679a2219c5e84f8f1833af6b7ef44a81c05f4;hb=8d9ed926d75e2a895f6245b2b10167e1280e0a8b;hp=ac0115e9f1685c965fad86bf883e44a045a72383;hpb=8f7bd67638e5ca99d4eccb382e5c759944aa7ab8;p=bup.git diff --git a/lib/bup/drecurse.py b/lib/bup/drecurse.py index ac0115e..129679a 100644 --- a/lib/bup/drecurse.py +++ b/lib/bup/drecurse.py @@ -1,5 +1,6 @@ import stat from bup.helpers import * +import bup.xstat as xstat try: O_LARGEFILE = os.O_LARGEFILE @@ -26,7 +27,7 @@ class OsFile: os.fchdir(self.fd) def stat(self): - return os.fstat(self.fd) + return xstat.fstat(self.fd) _IFMT = stat.S_IFMT(0xffffffff) # avoid function call in inner loop @@ -34,7 +35,7 @@ def _dirlist(): l = [] for n in os.listdir('.'): try: - st = os.lstat(n) + st = xstat.lstat(n) except OSError, e: add_error(Exception('%s: %s' % (realpath(n), str(e)))) continue @@ -68,7 +69,7 @@ def recursive_dirlist(paths, xdev): assert(type(paths) != type('')) for path in paths: try: - pst = os.lstat(path) + pst = xstat.lstat(path) if stat.S_ISLNK(pst.st_mode): yield (path, pst) continue