Mercurial > codedump
view deleteautosave.py @ 67:9636d5dee08c
[channeldownloader.py] Python 2.7 compatibility
Also make the code a *lot* more optimized
(e.g. removing the unnecessary double for-loop)
committer: GitHub <noreply@github.com>
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Wed, 18 May 2022 18:57:58 -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)