ensure lecture directory exists

This commit is contained in:
Maximilian Keßler 2021-09-16 18:33:33 +02:00
parent bc166396c7
commit 885f47efa0

View file

@ -63,6 +63,7 @@ class Lectures(list):
self.info = [] self.info = []
if 'path' in self.info: if 'path' in self.info:
self.root = script.root / self.info['path'] self.root = script.root / self.info['path']
self.root.mkdir(parents=True, exist_ok=True)
else: else:
self.root = script.root self.root = script.root
list.__init__(self, self.read_files()) list.__init__(self, self.read_files())