forked from Archive/PX4-Autopilot
px_romfs_pruner.py: ignore files starting with .
This commit is contained in:
parent
9169a585bf
commit
6e26d1b8dc
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue