Commit 17f2ef1f authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Filter hidden files when matching #243.

parent 991aee6c
Pipeline #67224 passed with stages
in 15 minutes and 47 seconds
......@@ -112,6 +112,9 @@ def match_parser(mainfile: str, upload_files: Union[str, files.StagingUploadFile
Returns: The parser, or None if no parser could be matched.
"""
if mainfile.startswith('.') or mainfile.startswith('~'):
return None
if isinstance(upload_files, str):
mainfile_path = os.path.join(upload_files, mainfile)
else:
......
Markdown is supported
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