Problem with fileAttributesAtPath

2008-08-18 Thread Nicolas Goles
Hi guys, I am trying to get fileAttributesAtPath using this code: (files contains the path to the directory that was enumerated ) while(object = [dirEnumerator nextObject]) { //First We craft the whole path for a single object NSString *fullPath = [files

Re: Problem with fileAttributesAtPath

2008-08-18 Thread Jason Coco
If you're using 10.5 you can try the method: -(NSDictionary *)attributesOfItemAtPath:(NSString *)path error: (NSError **)error This way you will get a description of what is failing from the NSError object. You can use it like this: NSError *theError; NSDictionary *fileAttributes =

Re: Problem with fileAttributesAtPath

2008-08-18 Thread Charles Steinman
--- On Mon, 8/18/08, Nicolas Goles [EMAIL PROTECTED] wrote: NSDictionary *fileAttributes = [manager fileAttributesAtPath:fullPath traverseLink:NO]; if( fileAttributes != nil) { NSString *filetype = [fileAttributes

Re: Problem with fileAttributesAtPath

2008-08-18 Thread Ken Thomases
On Aug 18, 2008, at 2:24 PM, Nicolas Goles wrote: //Try to obtain fileAttributes NSDictionary *fileAttributes = [manager fileAttributesAtPath:fullPath traverseLink:NO]; The thing is that my fileAttributes it's always = nil so I always get it's nill on the console.

Re: Problem with fileAttributesAtPath

2008-08-18 Thread Randall Meadows
On Aug 18, 2008, at 1:24 PM, Nicolas Goles wrote: Hi guys, I am trying to get fileAttributesAtPath using this code: (files contains the path to the directory that was enumerated ) while(object = [dirEnumerator nextObject]) { //First We craft the whole path for a