From 3a615c7eb66d94ca4d4e28e84d378f6c85095d70 Mon Sep 17 00:00:00 2001 From: Donald Little Date: Mon, 9 Mar 2026 22:23:48 +0000 Subject: [PATCH] Add error message to updatecoll.py when mediafolder does not have a trailing slash --- updatecoll.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/updatecoll.py b/updatecoll.py index b45f7d1..a9dd6cf 100644 --- a/updatecoll.py +++ b/updatecoll.py @@ -13,6 +13,12 @@ except: print() sys.exit() +if apiconfig.mediafolder[-1] != "/": + print("Error!") + print(" mediafolder value in apiconfig.py does not have a trailing slash") + print() + sys.exit() + colcontents = {} for col in apiconfig.colmap.values(): colcontents[col] = []