From b4fffc9c3a137520eaa5a60e568ac46da91d4ad7 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 23 Mar 2022 15:20:17 +0800 Subject: [PATCH] Update files_api.py --- class/core/files_api.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/class/core/files_api.py b/class/core/files_api.py index b91d3268b..681668a82 100755 --- a/class/core/files_api.py +++ b/class/core/files_api.py @@ -121,7 +121,6 @@ class files_api: def getDirSizeApi(self): path = request.form.get('path', '') tmp = self.getDirSize(path) - # print(tmp) return mw.returnJson(True, tmp[0].split()[0]) def getDirApi(self): @@ -153,7 +152,6 @@ class files_api: mw.writeLog('文件管理', msg) return mw.returnJson(True, '文件创建成功!') except Exception as e: - # print str(e) return mw.returnJson(True, '文件创建失败!') def createDirApi(self): @@ -273,7 +271,6 @@ done else: data['files'].append(tmp) except Exception as e: - # print(e) continue return mw.returnJson(True, 'OK', data) @@ -451,8 +448,6 @@ done else: filesx.append(filename) - # print(filesx) - for fn in filesx: if fn == '.': continue @@ -839,7 +834,6 @@ done mtime + ';' + accept + ';' + user + ';' + link) n += 1 except Exception as e: - #print('getdir:dd.', e) continue data['DIR'] = sorted(dirnames) data['FILES'] = sorted(filenames)