Commit 19219bbf authored by Alexey.Musinov's avatar Alexey.Musinov Committed by Alexander Trofimov

[ios] update

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@64998 954022d7-b5bf-4e40-9824-e11837661b57
parent 0e4c9ca5
...@@ -10,4 +10,5 @@ ...@@ -10,4 +10,5 @@
@interface NSFileManager (Utils) @interface NSFileManager (Utils)
- (BOOL)copyFolderAtPath:(NSString *)sourceFolder toDestinationFolderAtPath:(NSString*)destinationFolder; - (BOOL)copyFolderAtPath:(NSString *)sourceFolder toDestinationFolderAtPath:(NSString*)destinationFolder;
- (NSString*)createTemporaryDirectory;
@end @end
...@@ -32,5 +32,18 @@ ...@@ -32,5 +32,18 @@
return YES; return YES;
} }
- (NSString*)createTemporaryDirectory {
NSError *error = nil;
NSString* path = [NSString stringWithFormat:@"%@%@", NSTemporaryDirectory(), [NSUUID UUID].UUIDString];
if(![[NSFileManager defaultManager] createDirectoryAtPath:path withIntermediateDirectories:YES attributes:nil error:&error])
{
NSLog(@"Could not creat temp path %@. error %@", path, error);
return @"";
}
return path;
}
@end @end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment