From 028f255021a08dd9607b92fd1bc013db6e631702 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 18 Oct 2020 16:52:32 +0800 Subject: [PATCH] bugfix --- appPublic/folderUtils.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/appPublic/folderUtils.py b/appPublic/folderUtils.py index 86a8a43..0cc5d23 100644 --- a/appPublic/folderUtils.py +++ b/appPublic/folderUtils.py @@ -6,12 +6,24 @@ import stat import os.path import platform import time +import random """ import win32api """ import sys +def filepoolpath(root): + paths=[191,193,197,199,97] + v = random.randint(0,9999999) + path = os.path.abspath(os.path.join(root, + str(v % paths[0]), + str(v % paths[1]), + str(v % paths[2]), + str(v % paths[3]), + str(v % paths[4]))) + return path + def startsWith(text,s): return text[:len(s)] == s