px_romfs_pruner.py: ignore files starting with .

This commit is contained in:
Julian Oes 2016-01-19 08:24:23 +01:00 committed by Lorenz Meier
parent 9169a585bf
commit 6e26d1b8dc
1 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,8 @@ def main():
for (root, dirs, files) in os.walk(args.folder):
for file in files:
# only prune text files
if ".zip" in file or ".bin" in file or ".swp" in file or ".data" in file or ".DS_Store" in file:
if ".zip" in file or ".bin" in file or ".swp" in file or ".data" in file or \
".DS_Store" in file or file.startswith("."):
continue
file_path = os.path.join(root, file)