1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-06 01:28:04 +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

@@ -43,6 +43,8 @@ class Comparator:
def _comp_dir(self, left, right, ignore):
"""compare a directory"""
if not os.path.exists(right):
return ''
if self._ignore([left, right], ignore):
if self.debug:
self.log.dbg('ignoring diff {} and {}'.format(left, right))