schema-check: Ignore hidden files

Otherwise, the parser will croak when it comes across temporary files
such as vim's .*.swp files.
This commit is contained in:
io 2018-01-15 23:23:01 +01:00
parent e67d607828
commit 5dcbbeb2e6
No known key found for this signature in database
GPG key ID: 9BD563027F0E32FC

View file

@ -354,6 +354,8 @@ def __index_files(path, use_file):
continue continue
for f in files: for f in files:
if f[0] == ".":
continue
dom = FileDOM(os.path.join(root, f)) dom = FileDOM(os.path.join(root, f))
yield dom yield dom