Re: Newbie: fileExistsAtPath
Re: Newbie: fileExistsAtPath
- Subject: Re: Newbie: fileExistsAtPath
- From: j o a r <email@hidden>
- Date: Wed, 17 Mar 2004 17:43:09 +0100
Something like this:
BOOL isDir;
BOOL hasFile = [[NSFileManager defaultManager] fileExistsAtPath:
thePath isDirectory: &isDir];
BOOL folderExists = (hasFile && isDir);
j o a r
On 2004-03-17, at 17.19, Martha Espinosa wrote:
>
I have an array with 4 items that I put into a table. One of my items
>
is a path (/Volumes/OSX/Folder/Folder-4532, no files in folder). What
>
I want to do is verify that the folder exists so I can then disable
>
the row if it does not exist.
>
>
I've looked at NSFileManager but I cannot figure out how to do it. Can
>
anyone explain to me how this works? Any help is appreciated..
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.