make weekly scratch?
This commit is contained in:
parent
eb84951349
commit
5ae0c9c070
1 changed files with 1 additions and 2 deletions
|
@ -13,8 +13,7 @@ SCRATCH_CURRENT.symlink_to(WEEK_SCRATCH)
|
|||
|
||||
|
||||
def scratch_maintenance():
|
||||
if not WEEK_SCRATCH.is_dir():
|
||||
WEEK_SCRATCH.mkdir(exist_ok=True)
|
||||
WEEK_SCRATCH.mkdir(exist_ok=True)
|
||||
for p in WEEK_SCRATCH.iterdir():
|
||||
if p.is_dir() and len(list(p.iterdir())) == 0:
|
||||
sys.stderr.write(f"removing: {p}\n")
|
||||
|
|
Loading…
Add table
Reference in a new issue