mirror of
https://git.dn42.dev/dn42/registry.git
synced 2025-07-19 08:56:59 +08:00
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:
parent
e67d607828
commit
5dcbbeb2e6
1 changed files with 2 additions and 0 deletions
|
@ -354,6 +354,8 @@ def __index_files(path, use_file):
|
|||
continue
|
||||
|
||||
for f in files:
|
||||
if f[0] == ".":
|
||||
continue
|
||||
dom = FileDOM(os.path.join(root, f))
|
||||
yield dom
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue