未验证 提交 29f70ff4 编写于 作者: W whs 提交者: GitHub

Fix temp filename in windows (#1166)

上级 604c0bbe
......@@ -396,7 +396,7 @@ class AutoCompression:
def compress(self):
# create a new temp directory in final dir
s_datetime = strftime("%Y-%m-%d-%H:%M:%S", gmtime())
s_datetime = strftime("%Y-%m-%d-%H-%M-%S", gmtime())
tmp_base_name = "_".join(["tmp", str(os.getpid()), s_datetime])
self.tmp_dir = os.path.join(self.final_dir, tmp_base_name)
if not os.path.exists(self.tmp_dir):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册