view deleteautosave.py @ 98:e4bf37150a3f

kemonopartydownloader.py: lint, use docopt instead of argparse, maybe some other changes committer: GitHub <noreply@github.com>
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Sun, 14 Aug 2022 05:29:01 -0400
parents 2aa9614cb39a
children
line wrap: on
line source

import os

for file in os.listdir("./"):
    name = os.path.splitext(file)[0][:-16][-8:]
    if name == "AutoSave":
        os.remove(file)