NSString *path = [NSString stringWithFormat:@"%@/Documents/", NSHomeDirectory()];

        localDataList = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:path error:nil];

        [localDataList retain];

Posted by genius3k