Nick> Tim Golden <[EMAIL PROTECTED]> wrote: >> [Nick Craig-Wood] >> >> | Tim Golden <[EMAIL PROTECTED]> wrote: >> | > if os.path.isfile (filepath): >> | > print filepath >> | >> | You might get a more accurate result using >> | >> | os.access(filepath, os.X_OK) >> | >> | instead of >> | >> | os.path.isfile(filepath) >> | >> | Which checks the file is executable
Just picking up this thread late. Note that access() doesn't do what you want unless your real and effective user ids are the same. Granted, that's the case most of the time, but not always... Skip -- http://mail.python.org/mailman/listinfo/python-list