Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List iPhone application document files

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

like image 436
quano Avatar asked Dec 17 '22 05:12

quano


1 Answers

NSFileManager *manager = [NSFileManager defaultManager];
    NSArray *fileList = [manager directoryContentsAtPath:documentsDirectory];
    for (NSString *s in fileList){
        NSLog(s);
    }
like image 171
ennuikiller Avatar answered Dec 29 '22 11:12

ennuikiller