Commit 6905f812 authored by Campbell Barton's avatar Campbell Barton
Browse files

Skip hidden files

parent 659547dd
......@@ -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"})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment