diff deleteautosave.py @ 31:b5cf08125fd5

add deleteautosave.py
author Paper <mrpapersonic@gmail.com>
date Sat, 05 Jun 2021 16:32:38 -0400
parents
children 2aa9614cb39a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deleteautosave.py	Sat Jun 05 16:32:38 2021 -0400
@@ -0,0 +1,6 @@
+import os, sys
+
+for file in os.listdir("./"):
+    name = os.path.splitext(file)[0][:-16][-8:]
+    if name == "AutoSave":
+        os.remove(file)