From 06242c8fd54b90713fe27ded8ef360668730f8c1 Mon Sep 17 00:00:00 2001 From: drfho Date: Tue, 26 Sep 2023 12:04:13 +0200 Subject: [PATCH] packMediaDB: fix os.makedirs for existing dirs Ref: os.makedirs(tempfolder, exist_ok=True) --- Products/zms/_mediadb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Products/zms/_mediadb.py b/Products/zms/_mediadb.py index b99acae6d..aba06b0a4 100644 --- a/Products/zms/_mediadb.py +++ b/Products/zms/_mediadb.py @@ -170,7 +170,7 @@ def manage_packMediaDb(self, REQUEST=None, RESPONSE=None): filenames = mediadb.valid_filenames() standard.writeLog( self, "[manage_packMediaDb]: filenames %s"%str(filenames)) tempfolder = tempfile.mkdtemp() - os.makedirs(tempfolder) + os.makedirs(tempfolder, exist_ok=True) standard.writeLog( self, "[manage_packMediaDb]: tempfolder %s"%tempfolder) # Traverse existing structure.