NSURL *mediaDirectory = ...; NSArray *contents = [fm contentsOfDirectoryAtURL: mediaDirectory includingPropertiesForKeys: @[] options: 0 error: &error]; if (contents == nil) { NSLog (@"could not contents of %@ - %@", mediaDirectory, error); return nil; }There's alsoenumeratorAtURL:includingPropertiesForKeys:...
that gives you back a directory enumerator.