示例#1
0
 def report(self, received_path: str, approved_path: str) -> bool:
     if not self.is_working():
         return False
     ensure_file_exists(approved_path)
     command_array = self.get_command(received_path, approved_path)
     self.run_command(command_array)
     return True
 def report(self, received_path: str, approved_path: str) -> bool:
     ensure_file_exists(approved_path)
     diff = calculate_diff(received_path, approved_path)
     with open(self.get_diff_file_name(received_path), mode="w") as file:
         file.write(diff)
     return True