Browse Source

improvements

marinofaggiana 3 years ago
parent
commit
5fa9926ed6
1 changed files with 3 additions and 1 deletions
  1. 3 1
      iOSClient/Networking/NCNetworking.swift

+ 3 - 1
iOSClient/Networking/NCNetworking.swift

@@ -235,7 +235,9 @@ import Queuer
                 let certificateAtPath = directoryCertificate + "/" + NCGlobal.shared.certificateTmpV2
                 let certificateToPath = directoryCertificate + "/" + host + ".der"
             
-                NCUtilityFileSystem.shared.moveFile(atPath: certificateAtPath, toPath: certificateToPath)
+                if !NCUtilityFileSystem.shared.moveFile(atPath: certificateAtPath, toPath: certificateToPath) {
+                    NCContentPresenter.shared.messageNotification("_error_", description: "_error_creation_file_", delay: NCGlobal.shared.dismissAfterSecond, type: NCContentPresenter.messageType.error, errorCode: NCGlobal.shared.errorCreationFile, forced: true)
+                }
             }
         }
     }