I have app in which i have recorded sound files i want that i may check that if files which i need or existing it should upload to server other wise not
I have type array in which there values like vital etc i want that if this file exits i have method like [self upload] then that it should be called otherwise not
int i=0;
for (i=0; i<[types count]; i++) {
NSString*type=[types objectAtIndex:i];
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString * filePath = [NSString stringWithFormat:@"%@/Documents/%@_%@_%@_%@.wav", NSHomeDirectory(),theCellData.firstName,theCellData.lasttName,theCellData.patientId,type];
BOOL fileExists = [[NSFileManager defaultManager] fileExistsAtPath:filePath];
}