0
파일 목록에서 디렉토리를 식별,하지만 난 누군가가 조언 해 줄 수 있습니다, 내가 분명히이 실행하는 방법에 대해 오해하고있어 목록내가 경로에 파일의 목록을 얻을 수
fileList = [[myFileManager contentsOfDirectoryAtPath:[NSString
stringWithFormat:@"%@/%@",documentsDir, appDelegate.user_name] error:&theError]
retain];
NSLog(@"FileList: %@", fileList);
for (int i =0; i< [fileList count]; i++)
{
NSString *fileName = [fileList objectAtIndex:i];
if ([fileName hasSuffix:@"dir"])
{
NSLog(@"dir found");
[fileList removeObjectAtIndex:i];
i--;
}
}
에서 모든 디렉토리를 제거 할 수 없습니다 나 한테 어떻게? doc에서