diff options
Diffstat (limited to 'contrib/ledger-du')
-rwxr-xr-x | contrib/ledger-du | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/ledger-du b/contrib/ledger-du index f5d7dd7d..580e916e 100755 --- a/contrib/ledger-du +++ b/contrib/ledger-du @@ -23,14 +23,14 @@ def report_file(path): print def find_files(path): - entries = os.listdir(path) - for entry in entries: - entry = join(path, entry) - if not islink(entry): - if isdir(entry) and entry != "/proc": - find_files(entry) + xacts = os.listdir(path) + for xact in xacts: + xact = join(path, xact) + if not islink(xact): + if isdir(xact) and xact != "/proc": + find_files(xact) else: - report_file(entry) + report_file(xact) args = sys.argv[1:] if len(args): |