From 747bccc994f2521a3b0a8bed596a1fb07a819ccc Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Mon, 3 Jun 2019 10:16:02 +0200 Subject: [PATCH] ios: Do not throw an error if the directory already exists --- ios/Runner/AppDelegate.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/Runner/AppDelegate.m b/ios/Runner/AppDelegate.m index 1675c50b..042923df 100644 --- a/ios/Runner/AppDelegate.m +++ b/ios/Runner/AppDelegate.m @@ -264,7 +264,7 @@ NSString* GetDirectoryOfType(NSSearchPathDirectory dir) { NSError *error = nil; [[NSFileManager defaultManager] createDirectoryAtPath:sshDirPath - withIntermediateDirectories:NO + withIntermediateDirectories:YES attributes:nil error:&error]; @@ -334,7 +334,7 @@ NSString* GetDirectoryOfType(NSSearchPathDirectory dir) { NSError *error = nil; [[NSFileManager defaultManager] createDirectoryAtPath:sshDirPath - withIntermediateDirectories:NO + withIntermediateDirectories:YES attributes:nil error:&error];