How do I remove/unlink wildcarded files
Anthony Papillion
anthony at cajuntechie.org
Thu Jan 1 18:13:31 EST 2015
Hi Everyone,
I have a function I'm writing to delete wildcarded files in a directory.
I tried this:
def unlinkFiles():
os.remove("/home/anthony/backup/unix*")
This doesn't seem to work because it's a wildcard filename. What is the
proper way to delete files using wildcards?
Thanks,
Anthony
--
Anthony Papillion
Phone: 1.918.631.7331
XMPP Chat: cypher at chat.cpunk.us
Fingerprint: 65EF73EC 8B57F6B1 8C475BD4 426088AC FE21B251
iNum: +883510001190960
PGP Key: http://www.cajuntechie.org/p/my-pgp-key.html
More information about the Python-list
mailing list