import os
import sys
from os.path import join,getsize
import hashlib
def getFileMD5(filePath):
f = open(filePath, "rb")
content = f.read()
m = hashlib.md5(content).hexdigest()
print(m)
def is_number(s):
try:
float(s)
return True
except ValueError:
pass
try:
import unicodedata
unicodedata.numeric(s)
return True
except (TypeError, ValueError):
pass
return False
if __name__ == '__main__':
while True:
root_ = sys.argv[1]
if root_ == '':
print('Directory is not specified')
else:
break
total_files_path = []
for root, dirs, files in os