MCPcopy
hub / github.com/deadc0de6/dotdrop / _comp_file

Method _comp_file

dotdrop/comparator.py:108–117  ·  view source on GitHub ↗

compare a file

(self, local_path, deployed_path, ignore)

Source from the content-addressed store, hash-verified

106 return ret
107
108 def _comp_file(self, local_path, deployed_path, ignore):
109 """compare a file"""
110 self.log.dbg(f'compare file {local_path} with {deployed_path}')
111 if (self.ignore_missing_in_dotdrop and not
112 os.path.exists(local_path)) \
113 or must_ignore([local_path, deployed_path], ignore,
114 debug=self.debug):
115 self.log.dbg(f'ignoring diff {local_path} and {deployed_path}')
116 return ''
117 return self._diff(local_path, deployed_path, header=True)
118
119 def _comp_dir(self, local_path, deployed_path, ignore):
120 """compare a directory"""

Callers 1

_compareMethod · 0.95

Calls 3

_diffMethod · 0.95
must_ignoreFunction · 0.90
dbgMethod · 0.80

Tested by

no test coverage detected