diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 14:03:52 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 14:03:52 -0800 |
commit | 094268cf8cb37b9d904c8a1e3559cdd46d73cf66 (patch) | |
tree | 9d28fb439d1c7d37ec01058072c0542e8d6fa763 /tools/fileslist.py | |
parent | a9b22497534d404bf956cdcc0941e20057219a2a (diff) | |
download | build-094268cf8cb37b9d904c8a1e3559cdd46d73cf66.zip build-094268cf8cb37b9d904c8a1e3559cdd46d73cf66.tar.gz build-094268cf8cb37b9d904c8a1e3559cdd46d73cf66.tar.bz2 |
auto import from //depot/cupcake/@132589
Diffstat (limited to 'tools/fileslist.py')
-rwxr-xr-x | tools/fileslist.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/fileslist.py b/tools/fileslist.py index ae1b4b6..ae105e6 100755 --- a/tools/fileslist.py +++ b/tools/fileslist.py @@ -17,10 +17,6 @@ import os, sys -def get_file_size(path): - st = os.lstat(path) - return st.st_size; - def main(argv): output = [] roots = argv[1:] @@ -31,7 +27,7 @@ def main(argv): for f in files: try: row = ( - get_file_size(os.path.sep.join((dir, f))), + os.path.getsize(os.path.sep.join((dir, f))), os.path.sep.join((relative, f)), ) output.append(row) |