• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSFileManager - isExecutableFileAtPath - seems to lie
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFileManager - isExecutableFileAtPath - seems to lie


  • Subject: Re: NSFileManager - isExecutableFileAtPath - seems to lie
  • From: Diggory Laycock <email@hidden>
  • Date: Fri, 5 Jul 2002 15:55:14 +0100

Ah - wise man:

-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.



On Friday, July 5, 2002, at 03:29 pm, Chris Ridd wrote:

> Diggory Laycock <email@hidden> wrote:
>> I was wondering if anyone else has noticed the somewhat unreliability
>> of
>> NSFileManager's isExecutableFileAtPath: method.
>>
>> It seems to return YES for *any bundle* (including frameworks) and
>> .webloc files.
>>
>> It returns NO to aliases to Applications and to at least one specific
>> Carbon App (Sim Express (http://www.idexpress.fi/simexpress/))
>>
>>
>> Does anyone have any idea of how to accurately identify a path as an
>> application?
>>
>> Digs.
>
> What are the Unix permission bits on the files that are "executable"?
> You'll probably need to check using the Terminal, not the Finder. I bet
> NSFileManager's just looking at the execute bit on files...
>
> 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.
>
>
Diggory Laycock
-----------------------
http://www.diggory.net
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSFileManager - isExecutableFileAtPath - seems to lie
      • From: Ondra Cada <email@hidden>
    • Re: NSFileManager - isExecutableFileAtPath - seems to lie
      • From: Chris Ridd <email@hidden>
References: 
 >Re: NSFileManager - isExecutableFileAtPath - seems to lie (From: Chris Ridd <email@hidden>)

  • Prev by Date: Re: NSFileManager - isExecutableFileAtPath - seems to lie
  • Next by Date: Re: NSFileManager - isExecutableFileAtPath - seems to lie
  • Previous by thread: Re: NSFileManager - isExecutableFileAtPath - seems to lie
  • Next by thread: Re: NSFileManager - isExecutableFileAtPath - seems to lie
  • Index(es):
    • Date
    • Thread