Re: isDirectory and real folders
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.