I want to get a list of files within a directory but I need to know if the file is a directory, when it was last modified, and offcourse its name :) . So I tried this:
This isn't the answer to your question but your error checking should look like this:
if (![url getResourceValue:&name forKey:NSURLNameKey error:&error])
{
NSLog(@"name: %@", [error localizedDescription]);error = nil;
}
Edit
Couldn't figure out what the problem was, but have just reread the documentation on the method. The important sentence is the one under discussion that says:
This method is unimplemented in iOS, so it performs no operation.