Re: NSFileManager - isExecutableFileAtPath - seems to lie
Re: NSFileManager - isExecutableFileAtPath - seems to lie
- Subject: Re: NSFileManager - isExecutableFileAtPath - seems to lie
- From: Chris Ridd <email@hidden>
- Date: Fri, 05 Jul 2002 16:23:37 +0100
Diggory Laycock <email@hidden> wrote:
>
Ah - wise man:
Nope, just a good guesser :-)
>
-rw-r--r-- 1 diggory admin 2617736 Jul 1 15:10 SIM express
>
>
>
also - I retract my assertion that .webloc files are seen as
>
executable - -that was a temporary bug in my code.
>
>
However, *any* directory seems to be seen as executable.
Unix uses the execute bit on a directory to mean you can traverse into it.
A bit of a hack perhaps, but we're stuck with it. (I am resisting the
temptation to say like OS 9 users are stuck with resource forks :-)
You may have to do an extra test for directories which aren't bundles after
calling isExecutableFileAtPath... Shudder.
Cheers,
Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.