mirror of
https://github.com/Kakune55/ComiPy.git
synced 2025-09-16 04:09:41 +08:00
修复了上传页面无法正常显示进度条的问题 支持多文件上传
This commit is contained in:
12
file.py
12
file.py
@@ -5,12 +5,12 @@ from PIL import Image
|
||||
app_conf = app_conf.conf()
|
||||
|
||||
def init():
|
||||
try:
|
||||
os.makedirs(app_conf.get("file", "inputdir"))
|
||||
os.makedirs(app_conf.get("file", "storedir"))
|
||||
os.makedirs(app_conf.get("file", "tmpdir"))
|
||||
except:
|
||||
pass
|
||||
paths = ("inputdir","storedir","tmpdir")
|
||||
for path in paths:
|
||||
try:
|
||||
os.makedirs(app_conf.get("file", path))
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
|
||||
def auotLoadFile():
|
||||
|
Reference in New Issue
Block a user