|
@@ -235,7 +235,9 @@ import Queuer
|
|
let certificateAtPath = directoryCertificate + "/" + NCGlobal.shared.certificateTmpV2
|
|
let certificateAtPath = directoryCertificate + "/" + NCGlobal.shared.certificateTmpV2
|
|
let certificateToPath = directoryCertificate + "/" + host + ".der"
|
|
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)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|