(fix) don't use removeItemAtPath - it is not available on Precise

Conflicts:

	SoObjects/Mailer/SOGoDraftObject.m
This commit is contained in:
Ludovic Marcotte
2016-05-10 15:51:32 -04:00
parent af85f4dd92
commit 11844283d1

View File

@@ -1160,7 +1160,7 @@ static NSString *userAgent = nil;
pmime = [self pathToAttachmentWithName: [NSString stringWithFormat: @".%@.mime", name]];
if (![[mimeType dataUsingEncoding: NSUTF8StringEncoding] writeToFile: pmime atomically: YES])
{
[[NSFileManager defaultManager] removeItemAtPath: p error: nil];
[[NSFileManager defaultManager] removeFileAtPath: p handler: nil];
return [NSException exceptionWithHTTPStatus: 500 /* Server Error */
reason: @"Could not write attachment to draft!"];
}