浏览代码

improvements

Marino Faggiana 7 年之前
父节点
当前提交
004eb914b0
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Picker/DocumentPickerViewController.swift

+ 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)