From 942cc7cf9ab1cface1d359460d90c319bd5af26b Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 18 Feb 2025 18:21:31 -0600 Subject: [PATCH] make year directory --- home/private_bin/executable_mkscratch | 1 + 1 file changed, 1 insertion(+) diff --git a/home/private_bin/executable_mkscratch b/home/private_bin/executable_mkscratch index 4fabfd8..e7ebde0 100644 --- a/home/private_bin/executable_mkscratch +++ b/home/private_bin/executable_mkscratch @@ -13,6 +13,7 @@ SCRATCH_CURRENT.symlink_to(WEEK_SCRATCH) def scratch_maintenance(): + WEEK_SCRATCH.parent.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: