From be7c66193f79ce398402e92ff728730cfe908831 Mon Sep 17 00:00:00 2001 From: Lawrence Angrave Date: Thu, 25 Jan 2024 14:50:20 -0600 Subject: [PATCH] Use makedirs --- PythonRpcServer/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PythonRpcServer/utils.py b/PythonRpcServer/utils.py index c9aee93..1cc7996 100644 --- a/PythonRpcServer/utils.py +++ b/PythonRpcServer/utils.py @@ -50,7 +50,7 @@ def getRandomString(n): def getTmpFile(subdir="pythonrpc"): - os.mkdir(os.path.join(DATA_DIRECTORY, subdir), exist_ok=True) + os.makedirs(os.path.join(DATA_DIRECTORY, subdir), exist_ok=True) while True: # A key space of 34^12 should be sufficient for us... filenameSize = 12