Update enumerate_files.py to ignore "hidden" files.
Skip over files that begin with '.' since they are often hidden temporary
files.
BUG=angle:553
Change-Id: I74f8412e6959c49bfca7f0ae063af42027e12549
Reviewed-on: https://chromium-review.googlesource.com/188035
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Shannon Woods <shannonwoods@chromium.org>
Tested-by: Geoff Lang <geofflang@chromium.org>
diff --git a/enumerate_files.py b/enumerate_files.py
index 3dc36dd..06ebf9d 100644
--- a/enumerate_files.py
+++ b/enumerate_files.py
@@ -40,6 +40,10 @@
for rootdir in dirs:
for root, dirnames, filenames in os.walk(rootdir):
for file in filenames:
+ # Skip files that are "hidden"
+ if file.startswith("."):
+ continue;
+
fullPath = os.path.join(root, file).replace("\\", "/")
for type in types:
if fnmatch.fnmatchcase(fullPath, type):