Hiros 发表于 2023-11-30 23:49:37

【未复现】在线解压Zip文件报错

报错信息:
REQUEST_DATE: 2023-11-30 23:45:07
PAN_VERSION: 8.0.42
OS_VERSION: CentOS7.9.2009 x86_64(Py3.7.9)
REMOTE_ADDR: 49.64.161.70
REQUEST_URI: POST /files?action=UnZip
REQUEST_FORM: {'sfile': '/www/wwwroot/daizi.co/WeEngine2.7.98-2023006270001.zip', 'dfile': '/www/wwwroot/daizi.co', 'type': 'zip', 'coding': 'UTF-8', 'password': '******'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0
Traceback (most recent call last):
File "/www/server/panel/BTPanel/__init__.py", line 2260, in publicObject
    res = run_obj.run(toObject, defs, get)
File "/www/server/panel/BTPanel/__init__.py", line 2207, in run
    result = getattr(toObject, get.action)(get)
File "/www/server/panel/class/files.py", line 1993, in UnZip
    return self.__unzip(get)
File "/www/server/panel/class/files.py", line 2061, in __unzip
    "file_mtime": datetime.datetime.fromtimestamp(os.path.getmtime(unzip_path)).strftime("%Y-%m-%d %H:%M:%S"),
AttributeError: type object 'datetime.datetime' has no attribute 'datetime'

解压保存两次,一个是中文名字存在的保存,一个就是上面的报错,面板重启也还是存在错误。


大炮运维V587 发表于 2023-12-1 12:22:18

测试中

大炮运维V587 发表于 2023-12-1 15:17:43

您好,刚测试并未复现您的问题,我压缩包里有中文,但是看你错误信息是时间的问题
您更新到最新版本解压试试,周三有发布8.0.43版本
页: [1]
查看完整版本: 【未复现】在线解压Zip文件报错