auto import from //depot/cupcake/@137055

This commit is contained in:
The Android Open Source Project
2009-03-02 22:54:15 -08:00
parent 4d23ccc023
commit a9b2249753
14 changed files with 157 additions and 34 deletions

View File

@@ -17,6 +17,10 @@
import os, sys
def get_file_size(path):
st = os.lstat(path)
return st.st_size;
def main(argv):
output = []
roots = argv[1:]
@@ -27,7 +31,7 @@ def main(argv):
for f in files:
try:
row = (
os.path.getsize(os.path.sep.join((dir, f))),
get_file_size(os.path.sep.join((dir, f))),
os.path.sep.join((relative, f)),
)
output.append(row)