the code gives error when I try to open directory as I want it to open the files within the directories however I am getting below error.
with open(i, 'rb') as f:
IsADirectoryError: [Errno 21] Is a directory: 'hard_signatures'
for i in SHA256_HASHES_pack1:
with open(i, 'rb') as f:
md5 = hashlib.md5()
sha1 = hashlib.sha1()
while True:
data = f.read(BUF_SIZE)
md5.update(data)
sha1.update(data)
if not data: