1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 13:56:44 +00:00

debug logs

This commit is contained in:
deadc0de6
2023-12-28 20:25:34 +01:00
committed by deadc0de
parent d1bfb24721
commit 5f549d9645

View File

@@ -116,12 +116,12 @@ class Comparator:
def _compare_dirs(self, local_path, deployed_path, ignore):
"""compare directories"""
self.log.dbg(f'compare {local_path} and {deployed_path}')
self.log.dbg(f'compare dirs {local_path} and {deployed_path}')
ret = []
comp = filecmp.dircmp(local_path, deployed_path)
# handle files and subdirs only in deployed dir
self.log.dbg(f'files only in deployed dir: {comp.left_only}')
self.log.dbg(f'files/dirs only in deployed dir: {comp.left_only}')
for i in comp.left_only:
abspath1 = os.path.join(local_path, i)
if os.path.isdir(abspath1):
@@ -136,7 +136,7 @@ class Comparator:
ret.append(f'=> \"{i}\" does not exist on destination\n')
# handle files and subdirs only in dotpath dir
self.log.dbg(f'files only in dotpath dir: {comp.right_only}')
self.log.dbg(f'files/dirs only in dotpath dir: {comp.right_only}')
for i in comp.right_only:
abspath1 = os.path.join(local_path, i)
if os.path.isdir(abspath1):