Переглянути джерело

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 роки тому
батько
коміт
ad4783012b
1 змінених файлів з 1 додано та 0 видалено
  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) }
             }