Marino Faggiana 6 년 전
부모
커밋
55105c2ced
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      iOSClient/Main/CCCreateCloud.swift

+ 2 - 2
iOSClient/Main/CCCreateCloud.swift

@@ -1073,10 +1073,10 @@ class CreateFormUploadScanDocument: XLFormViewController, CCMoveDelegate {
             do {
                 let filePaths = try FileManager.default.contentsOfDirectory(atPath: path)
                 for filePath in filePaths {
-                    try FileManager.default.removeItem(atPath: path + filePath)
+                    try FileManager.default.removeItem(atPath: path + "/" + filePath)
                 }
             } catch let error as NSError {
-                print("Could not clear temp folder: \(error.debugDescription)")
+                print("Error: \(error.debugDescription)")
             }
             
             self.dismiss(animated: true, completion: nil)