starting core implementation in python

This commit is contained in:
Amber 2023-11-07 10:30:09 +01:00
parent 9108c6b0dc
commit 99f76f796c
3 changed files with 11 additions and 0 deletions

Binary file not shown.

8
src/hash/gen.py Normal file
View File

@ -0,0 +1,8 @@
import hashlib
def generate_file_hash(file_path, hexdigest=True):
with open(file_path, "rb") as f:
buf = f.read()
if hexdigest: return hashlib.md5(buf).hexdigest()
return hashlib.md5(buf).digest()

3
src/masync.py Executable file
View File

@ -0,0 +1,3 @@
if __name__ == '__main__':
print('python masync script: #!/usr/bin/env python ')