• 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: isDirectory and real folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: isDirectory and real folders


  • Subject: Re: isDirectory and real folders
  • From: "Dr. H. Nikolaus Schaller" <email@hidden>
  • Date: Sat, 1 May 2004 15:39:35 +0200

Try

BOOL isDir;

if([[NSFileManager defaultManager] fileExistsAtPath:path isDirectory:&isDir] && isDir)
{ // existing directory
}
else
{ // not existing or not directory
}

-- Nikolaus

Am 01.05.2004 um 15:27 schrieb Luca Torella:

Hello, my application should distinguish files from folders. I use the following method:
BOOL = [NSFileWrapper isDirectory];

The problem is that I'd like to consider every package (like the one of the apps) likes file and not like folders. How can I do that?

Thanks,
Luca.
_______________________________________________
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.
_______________________________________________
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.


References: 
 >isDirectory and real folders (From: Luca Torella <email@hidden>)

  • Prev by Date: bug in NSBundle pathForResource:ofType:inDirectory: ?
  • Next by Date: Do a click by code
  • Previous by thread: isDirectory and real folders
  • Next by thread: Re: isDirectory and real folders
  • Index(es):
    • Date
    • Thread