| SaturN |
Jun 26th, 2005 8:18 AM |
My ex g/f has prying eyes, and likes to read my chat logs, So....
hehe, my girlfriend is obsessed, and likes to read all my msn chat logs, and it's hard to find the time to delete them without her watching.. So I thought i would let something else do my dirty work, and stop her watching me, so they all get removed in double click time!!!
Ain't sure if this would help anyone else, I think it's just me with the physco!!!
:
import os
path = "WHERE YOUR CHAT LOGS ARE STORED END WITH \\"
rem = []
for file in os.listdir(path):
if file.endswith(".xml"): #My chat logs are xml files, if your's are different
#change the ending ending here
try:
rem = []
rem.append(path)
rem.append(file)
rem = "".join(rem)
os.remove(rem)
except:
IOError
hope some one is in need for it as much as me!!! LOL
|