i am new to iPad
developer,
i am making epub reader
application,
i want to check how many .epub
file is there, in it's downloads folder when user downloads any epub
from internet.
and finally i want to store name of each epub in my array
...
How should i implement this ?
Any help will be appreciated.
Thanks In Advance !!
sorry, for the load in DB here, i found solution,
NSString *files;
NSDirectoryEnumerator *direnum = [[NSFileManager defaultManager] enumeratorAtPath:basePath];
NSMutableArray *movfiles = [NSMutableArray array];
while(files = [direnum nextObject])
{
if([[files pathExtension] isEqualToString:@"epub"])
[movfiles addObject:files];
}
for (int i=0; i<[movfiles count]; i++) {
NSLog(@"array=%@",[movfiles objectAtIndex:i]);
}