Skip to content
Snippets Groups Projects
Commit 7c4fafa9 authored by Campbell Barton's avatar Campbell Barton
Browse files

Skip hidden files

parent 1c02cb8d
Branches
No related tags found
No related merge requests found
......@@ -1374,6 +1374,9 @@ def scan_source_recursive(dirpath, args):
yield filepath
def is_source(filename):
# skip temp files
if filename.startswith("."):
return False
ext = splitext(filename)[1]
return (ext in {".c", ".inl", ".cpp", ".cxx", ".cc", ".hpp", ".hxx", ".h", ".hh", ".osl"})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment