Iphone – List iPhone application document files

documentfileiphonelist

Is there a way to get the filenames of the files in an iPhone application's document-folder? How do you do that?

Best Answer

NSFileManager *manager = [NSFileManager defaultManager];
    NSArray *fileList = [manager directoryContentsAtPath:documentsDirectory];
    for (NSString *s in fileList){
        NSLog(s);
    }