Ticket #1805: tahoe_cp.py.patch

File tahoe_cp.py.patch, 1.8 KB (added by ChosenOne, at 2012-09-14T12:20:50Z)

suggested patch

  • tahoe_cp.py

    old new  
    103103        self.children = {}
    104104        children = listdir_unicode(self.pathname)
    105105        for i,n in enumerate(children):
    106             self.progressfunc("examining %d of %d" % (i, len(children)))
     106            self.progressfunc("examining %d of %d" % (i+1, len(children)))
    107107            pn = os.path.join(self.pathname, n)
    108108            if os.path.isdir(pn):
    109109                child = LocalDirectorySource(self.progressfunc, pn)
     
    131131        self.children = {}
    132132        children = listdir_unicode(self.pathname)
    133133        for i,n in enumerate(children):
    134             self.progressfunc("examining %d of %d" % (i, len(children)))
     134            self.progressfunc("examining %d of %d" % (i+1, len(children)))
    135135            n = unicode(n)
    136136            pn = os.path.join(self.pathname, n)
    137137            if os.path.isdir(pn):
     
    239239            return
    240240        self.children = {}
    241241        for i,(name, data) in enumerate(self.children_d.items()):
    242             self.progressfunc("examining %d of %d" % (i, len(self.children_d)))
     242            self.progressfunc("examining %d of %d" % (i+1, len(self.children_d)))
    243243            if data[0] == "filenode":
    244244                mutable = data[1].get("mutable", False)
    245245                writecap = to_str(data[1].get("rw_uri"))
     
    333333            return
    334334        self.children = {}
    335335        for i,(name, data) in enumerate(self.children_d.items()):
    336             self.progressfunc("examining %d of %d" % (i, len(self.children_d)))
     336            self.progressfunc("examining %d of %d" % (i+1, len(self.children_d)))
    337337            if data[0] == "filenode":
    338338                mutable = data[1].get("mutable", False)
    339339                writecap = to_str(data[1].get("rw_uri"))