NSFileManager 'attributesOfItemAtPath:error:' does not traverse a link?

2010-05-28 Thread Tito Ciuro
Hello, I'm trying to replace the following deprecated NSFileManager method: /* attributesOfItemAtPath:error: returns an NSDictionary of key/value pairs containing the attributes of the item (file, directory, symlink, etc.) at the path in question. If this method returns 'nil', an NSError

Re: NSFileManager 'attributesOfItemAtPath:error:' does not traverse a link?

2010-05-28 Thread Charles Srstka
On May 28, 2010, at 10:01 AM, Tito Ciuro wrote: The old statement traverses the link: NSDictionary* attr = [[NSFileManager defaultManager] fileAttributesAtPath:file traverseLink:YES]; The problem is that the header states that 'attributesOfItemAtPath:error:' that it's a

Re: NSFileManager 'attributesOfItemAtPath:error:' does not traverse a link?

2010-05-28 Thread Tito Ciuro
Thanks Charles! -- Tito On May 28, 2010, at 5:17 PM, Charles Srstka wrote: On May 28, 2010, at 10:01 AM, Tito Ciuro wrote: The old statement traverses the link: NSDictionary* attr = [[NSFileManager defaultManager] fileAttributesAtPath:file traverseLink:YES]; The problem is that

Re: NSFileManager 'attributesOfItemAtPath:error:' does not traverse a link?

2010-05-28 Thread Kevin Perry
That documentation is incorrect and is scheduled to be corrected. -attribtuesOfItemAtPath:error: will never automatically resolve symlinks, and that will never change. -Kevin Perry On May 28, 2010, at 8:17 AM, Charles Srstka wrote: On May 28, 2010, at 10:01 AM, Tito Ciuro wrote: The old