mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-22 09:18:38 +01:00
Skip files that start with ".", e.g. vim swp files.
This commit is contained in:
parent
6ba9b29b3b
commit
8974b2b67b
|
|
@ -55,6 +55,9 @@ def check_example_dir(exampledir, schemadir):
|
||||||
errors = []
|
errors = []
|
||||||
for root, dirs, files in os.walk(exampledir):
|
for root, dirs, files in os.walk(exampledir):
|
||||||
for filename in files:
|
for filename in files:
|
||||||
|
if filename.startswith("."):
|
||||||
|
# Skip over any vim .swp files.
|
||||||
|
continue
|
||||||
examplepath = os.path.join(root, filename)
|
examplepath = os.path.join(root, filename)
|
||||||
schemapath = examplepath.replace(exampledir, schemadir)
|
schemapath = examplepath.replace(exampledir, schemadir)
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue