[Tutor] Excluding a directory in a script...

Spencer Parker inthefridge at gmail.com
Wed May 7 21:34:54 CEST 2008


I have a script that is just basically looking for a disk image in a
directory...it lists all the directories in the main disk image directory
then appends disk.img to the end to build the full file path.  I have one
directory that holds old images in it for deletion at a later date.  This
directory will never contain disk.img in there...it causes the script to
error out since it didn't find that in there.  How can I exclude this
directory from being listed?

-- 
Spencer Parker
_______________________________________________________

"if you can't go to heaven, may you at least die in Ireland."

_______________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080507/7c36bb96/attachment.htm>


More information about the Tutor mailing list