Moved old webpage, app & client into .archive folder

This commit is contained in:
2022-08-19 00:44:25 +02:00
parent 851af204ab
commit 0efc109992
66 changed files with 0 additions and 0 deletions

23
.archive/app/modules/dirHash.py Executable file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author: KevinMidboe
# @Date: 2017-04-05 15:24:17
# @Last Modified by: KevinMidboe
# @Last Modified time: 2017-04-05 18:22:13
import os, hashlib
from functools import reduce
hashDir = '/Volumes/media/tv'
def main():
dirList = os.listdir(hashDir)
concat = reduce(lambda x, y: x + y, dirList, "")
m = hashlib.md5()
m.update(bytes(concat, 'utf-16be'))
return m.digest()
if __name__ == '__main__':
print(main())
# TODO The hash value should be saved in a global manner