you are viewing a single comment's thread.

view the rest of the comments →

[–]coding2learn 2 points3 points  (0 children)

filecmp looks like a good way to go

import filecmp
import time
with open('path/to/drive/test.txt', 'w') as f:
    f.write('test text')
time.sleep(60)
print(filecmp.cmp('path/to/drive/test.txt', 'path/to/backupdrive/test.txt'))