MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / check_external_file_changes

Function check_external_file_changes

web/pgadmin/settings/__init__.py:527–531  ·  view source on GitHub ↗
(file_path, last_saved_file_hash)

Source from the content-addressed store, hash-verified

525
526
527def check_external_file_changes(file_path, last_saved_file_hash):
528 current_file_hash = compute_md5_hash_file(file_path)
529 if current_file_hash != last_saved_file_hash:
530 return True
531 return False

Callers 2

get_application_stateFunction · 0.85
get_tool_dataFunction · 0.85

Calls 1

compute_md5_hash_fileFunction · 0.85

Tested by

no test coverage detected