On 29-dec-04, at 17:33, Andre van der Vlies wrote:
    def visit(arg, top, files):
       global total
       for file in files:
          arg += os.lstat("%s/%s" % (top,file))[6]
       total += arg

Denk er wel om dat dit niet de hoeveelheid diskruimte is die de file in beslag neemt. Zo zijn bijvoorbeeld "gaten" in de file wel meegerekend hoewel ze geeen diskruimte innemen (als het filesystem dat support), en indirect/double-indirect/resource-fork/andere-administratieve-of- metadata blokken niet.
--
Jack Jansen, <[EMAIL PROTECTED]>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma Goldman


_______________________________________________
Python-nl mailing list
Python-nl@python.org
http://mail.python.org/mailman/listinfo/python-nl

Antwoord per e-mail aan