1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-16 05:26:11 +00:00
This commit is contained in:
deadc0de6
2018-12-27 15:39:49 +01:00
parent 7e42ccbee5
commit a268811ceb

View File

@@ -118,11 +118,11 @@ class Templategen:
for entry in os.listdir(path): for entry in os.listdir(path):
fpath = os.path.join(path, entry) fpath = os.path.join(path, entry)
if not os.path.isfile(fpath): if not os.path.isfile(fpath):
# rec explore dir # recursively explore directory
if Templategen.is_template(fpath): if Templategen.is_template(fpath):
return True return True
else: else:
# is file a template # check if file is a template
if Templategen._is_template(fpath): if Templategen._is_template(fpath):
return True return True
return False return False