From 22e6d5735f039897c32aa6b5a2a83a04e9fe6851 Mon Sep 17 00:00:00 2001 From: nathaniel smith Date: Tue, 3 Oct 2017 17:01:37 -0700 Subject: [PATCH] ignore hidden files during compilation --- tildewiki/compilation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tildewiki/compilation.py b/tildewiki/compilation.py index f752d1f..32e9a81 100644 --- a/tildewiki/compilation.py +++ b/tildewiki/compilation.py @@ -49,6 +49,8 @@ def compile_wiki(source_path: str, dest_path: str) -> None: os.mkdir(os.path.join(dest_root, directory)) for source_filename in files: + if source_filename.startswith('.'): + continue source_file_path = os.path.join(source_root, source_filename) output = compile_source_file( source_file_path,