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)