On 04/04/06, kakada <[EMAIL PROTECTED]> wrote: > How can we know that one specific file is already exist in filesystem?
Have a look in the os and os.path modules. In this case, os.path.exists is probably what you want: if not os.path.exists(inputfilename): print 'Oops, file does not exist!' sys.exit() ziparchive = zipfile.ZipFile(inputfilename, 'r') # ... -- John. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor