Why no isexec, isread, iswrite, etc (was: I must be missing something obvious: os.path.isexecutable?)

Steve Lamb grey at despair.rpglink.com
Fri Jan 19 16:29:56 EST 2001


On Fri, 19 Jan 2001 19:50:34 GMT, Grant Edwards <grante at visi.com> wrote:
>[Same answer if you're going to try to write or exec a file.]

    It is?  What if you want to check to ensure something is executable before
actually symlinking as a sanity check?  Yes, things can change between the
stat call and when you do the link in that case but that isn't an excuse not
to do the sanity check in the first place in some situations.  For example,
startup scripts which are symlinking different scripts to adapt the startup to
the changing configuration of a laptop.

    Anyone want to guess what my current project is?  :P

-- 
         Steve C. Lamb         | I'm your priest, I'm your shrink, I'm your
         ICQ: 5107343          | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------



More information about the Python-list mailing list