Commit 3b079d2f authored by Wallenfang, Nils's avatar Wallenfang, Nils

add unimplemented method for uploading logs

parent 12b0472c
import hashlib
import os
def generate_id(section_path):
m = hashlib.sha512()
directories = sorted([f for f in os.listdir(section_path) if os.path.isdir(os.path.join(section_path, f))])
for directory in directories:
return m.hexdigest()
def upload_log(section_path, logfile_path):
id = generate_id(section_path)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment