add files_are_same
This commit is contained in:
parent
290b3f879a
commit
5102cf2d91
1 changed files with 5 additions and 0 deletions
|
|
@ -79,3 +79,8 @@ def get_session_id(args_output_dir: Path, args_resume: bool, args_session_id: Op
|
|||
if latest_session_id:
|
||||
session_id = latest_session_id
|
||||
return session_id
|
||||
|
||||
|
||||
def files_are_same(file1: Path, file2: Path) -> bool:
|
||||
with open(file1, "r") as f1, open(file2, "r") as f2:
|
||||
return f1.read() == f2.read()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue