未验证 提交 13c6a4df 编写于 作者: G Guanghua Yu 提交者: GitHub

fix create tmp_dir in Windows (#1313)

上级 44497df6
......@@ -554,7 +554,7 @@ class AutoCompression:
def create_tmp_dir(self, base_dir, prefix="tmp"):
# 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([prefix, str(os.getpid()), s_datetime])
tmp_dir = os.path.join(base_dir, tmp_base_name)
if not os.path.exists(tmp_dir):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册