Created
January 2, 2013 20:10
-
-
Save codeswimmer/4437521 to your computer and use it in GitHub Desktop.
iOS: How To Get A List Of Files In A Directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This example below list down all files inside the application resource. | |
| NSString *documentsDirectory = [[NSBundle mainBundle] resourcePath]; | |
| NSError *err; | |
| NSArray *directoryContentArray = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:documentsDirectory error:&err]; | |
| NSLog(@"%@", directoryContentArray); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment