소스 검색

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