summaryrefslogtreecommitdiff
path: root/contrib/ledger-du
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-23 19:07:30 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-23 19:07:30 -0400
commit944c63e6f26d1f05ba6f63c60f510d3796872f3e (patch)
treee1fc54319c2c42c16a64e95930acaca063658863 /contrib/ledger-du
parent057506ab6dddbfb75d1bb29289602f375ca57df5 (diff)
downloadfork-ledger-944c63e6f26d1f05ba6f63c60f510d3796872f3e.tar.gz
fork-ledger-944c63e6f26d1f05ba6f63c60f510d3796872f3e.tar.bz2
fork-ledger-944c63e6f26d1f05ba6f63c60f510d3796872f3e.zip
The Great Renaming, Part II
The last commit did not contain the majority of changes because of a slight mishap. This contains the real changeset.
Diffstat (limited to 'contrib/ledger-du')
-rwxr-xr-xcontrib/ledger-du14
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):