Marino Faggiana 7 жил өмнө
parent
commit
004eb914b0

+ 2 - 0
Picker/DocumentPickerViewController.swift

@@ -530,11 +530,13 @@ extension DocumentPickerViewController {
             let fileName = sourceURL.lastPathComponent
             let destinationURLDirectoryUser = URL(string: "file://\(directoryUser)/\(fileName)".addingPercentEncoding(withAllowedCharacters: .urlPathAllowed)!)!
             
+            /*
             let fileSize = (try! FileManager.default.attributesOfItem(atPath: sourceURL.path)[FileAttributeKey.size] as! NSNumber).uint64Value
             if fileSize == 0 {
                 print("file 0 length")
                 return
             }
+            */
             
             self.destinationURL = appGroupContainerURL()?.appendingPathComponent(fileName)