Implemented the CopyFilesTask task in the library module.

This commit is contained in:
2025-01-18 03:06:39 +01:00
parent 647c5bd32a
commit 1466bff250
6 changed files with 78 additions and 67 deletions
@@ -23,9 +23,6 @@ public struct FileService: FileServicing {
// MARK: Functions
public func copyFile(from source: URL, to destination: URL) async throws (FileServiceError) {
guard try await isItemExists(at: source) else {
throw FileServiceError.itemNotExists
}
guard try await !isItemExists(at: destination) else {
throw FileServiceError.itemAlreadyExists
}