Retrieving the full path of Unix apps
adalke at mindspring.com
Tue Oct 5 23:35:45 CEST 2004
Michael Hoffman wrote:
> You're going to have to do process a
> lot of stats to find out which files you have execute permission for.
> And they have already dealt with all the caveats that you haven't even
> thought of yet ;-)
OTOH, if the path or filename contains a "\n" then the
OP's code won't work. If the filesystem uses Unicode then
there will also be problems.
dalke at dalkescientific.com
More information about the Python-list