浏览代码

improvements

marinofaggiana 3 年之前
父节点
当前提交
5fa9926ed6
共有 1 个文件被更改,包括 3 次插入1 次删除
  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)
+                }
             }
         }
     }