diff --git a/home/private_bin/executable_mkscratch b/home/private_bin/executable_mkscratch index 1e5bbbd..4fabfd8 100644 --- a/home/private_bin/executable_mkscratch +++ b/home/private_bin/executable_mkscratch @@ -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")