I am trying to count the whole files in a directory, which contains the subdirectories is that I have files in the first folder Is to count:
- (NSString *) numberOfPhotos {NSString * MyPath = @ "/ rootdirectory /"; NSArray * directoryContent = [[NSFileManager defaultManager] Directory SettingsTap: MyPath]; Return [NSString stringWithFormat: @ "% d", [Directory Resource Count]]; }
I was probably thinking something like
(file in folder) {[file count] { < P was actually very easy: NSDirectoryEnumerator * subs = [[NSFileManager defaultManager] subpathsOfDirectoryAtPath: update: musicpath error: zero] ;
NSDirectoryEnumerator * subs = [[NSFileManager defaultManager] subpathsOfDirectoryAtPath: musicpath error: Zero];
Comments
Post a Comment