Explorar el Código

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana hace 2 años
padre
commit
ad4783012b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      iOSClient/Utility/NCUtility.swift

+ 1 - 0
iOSClient/Utility/NCUtility.swift

@@ -530,6 +530,7 @@ class NCUtility: NSObject {
                 }
             }
             guard let videoResource = videoResource else { return queue.async { completion(true) }}
+            NCUtilityFileSystem.shared.deleteFile(filePath: fileNamePath)
             PHAssetResourceManager.default().writeData(for: videoResource, toFile: URL(fileURLWithPath: fileNamePath), options: nil) { error in
                 queue.async { completion(error != nil) }
             }