From 5ae0c9c0702f9e376a3ed3fa3a530e7524b14518 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 18 Feb 2025 18:19:02 -0600 Subject: [PATCH] make weekly scratch? --- home/private_bin/executable_mkscratch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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")