ensure lecture directory exists
This commit is contained in:
parent
bc166396c7
commit
885f47efa0
1 changed files with 1 additions and 0 deletions
|
@ -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())
|
||||||
|
|
Loading…
Reference in a new issue