views:

362

answers:

1

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

+5  A: 
NSFileManager *manager = [NSFileManager defaultManager];
    NSArray *fileList = [manager directoryContentsAtPath:documentsDirectory];
    for (NSString *s in fileList){
        NSLog(s);
    }
ennuikiller
Thank you very much!
quano
your very welcome!
ennuikiller