Re: enumeratorAtPath - path string issue???
Re: enumeratorAtPath - path string issue???
- Subject: Re: enumeratorAtPath - path string issue???
- From: Rail Jon Rogut <email@hidden>
- Date: Thu, 5 Jun 2008 15:31:26 -0700
Nope - no error or warning.. but here's a picture of the Get Info for
one of the WAV files in the path...
https://www.platinumsamples.com/images/Path.jpg
and in my code:
- (NSMutableArray *) getFileListArray:(NSString *)searchPath
{
NSMutableArray * resultArray;
NSString *file;
NSDirectoryEnumerator *dirEnum = [[NSFileManager defaultManager]
enumeratorAtPath:searchPath];
NSLog(@"searchPath = %@", searchPath);
while (file = [dirEnum nextObject])
{
NSLog(@"Found file = %@", file);
if ([[[file pathExtension] lowercaseString] isEqualToString: @"wav"])
{
NSLog(@"WAV File = %@", file);
// Will add to resultArray
}
}
return resultArray;
}
The while loop is never entered.. so it indicates that
enumeratorAtPath:searchPath couldn't find the files... The only
Console output is from the first NSLog().
Thanks,
Rail
-------------------------------------------------
Producer/Engineer
www.platinumsamples.com
mailto: email@hidden
On Jun 5, 2008, at 3:17 PM, Andy Lee wrote:
On Jun 5, 2008, at 5:50 PM, Rail Jon Rogut wrote:
but it doesn't like my searchPath value.. which looks fine to me....
(NSLog output): searchPath = /Volumes/JSD 750-1/BFD/Data/AFJ Kit 3/
Hihat1/Pedal
What doesn't it like about this? Is there an error or warning
message?
--Andy
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden