1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-10 02:49:20 +00:00

ensure source dotfile exists

This commit is contained in:
deadc0de6
2018-09-24 22:02:36 +02:00
parent 0d4ce18e49
commit d36e525ca4
3 changed files with 8 additions and 0 deletions

View File

@@ -93,6 +93,8 @@ class Templategen:
def is_template(path):
"""recursively check if any file is a template within path"""
if not os.path.exists(path):
return False
if os.path.isfile(path):
# is file
return Templategen._is_template(path)