cli tool: do not archive postdata temp file
This commit is contained in:
parent
ab5d744f9e
commit
431cac35c3
|
@ -93,6 +93,8 @@ def initdatapath():
|
||||||
if not os.path.exists("history"):
|
if not os.path.exists("history"):
|
||||||
os.mkdir("history")
|
os.mkdir("history")
|
||||||
if os.path.exists("session"):
|
if os.path.exists("session"):
|
||||||
|
if os.path.exists("session/postdata"):
|
||||||
|
os.remove("session/postdata")
|
||||||
shutil.make_archive("history/session" + str(time.time()), "zip", "session")
|
shutil.make_archive("history/session" + str(time.time()), "zip", "session")
|
||||||
shutil.rmtree("session")
|
shutil.rmtree("session")
|
||||||
os.mkdir("session")
|
os.mkdir("session")
|
||||||
|
|
Loading…
Reference in New Issue