make year directory
This commit is contained in:
parent
da1e3a952b
commit
942cc7cf9a
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@ SCRATCH_CURRENT.symlink_to(WEEK_SCRATCH)
|
||||||
|
|
||||||
|
|
||||||
def scratch_maintenance():
|
def scratch_maintenance():
|
||||||
|
WEEK_SCRATCH.parent.mkdir(exist_ok=True)
|
||||||
WEEK_SCRATCH.mkdir(exist_ok=True)
|
WEEK_SCRATCH.mkdir(exist_ok=True)
|
||||||
for p in WEEK_SCRATCH.iterdir():
|
for p in WEEK_SCRATCH.iterdir():
|
||||||
if p.is_dir() and len(list(p.iterdir())) == 0:
|
if p.is_dir() and len(list(p.iterdir())) == 0:
|
||||||
|
|
Loading…
Add table
Reference in a new issue