Implemented the "copyFile(from: to: )" function for the FileService service in the library target.

This commit is contained in:
javier committed 2025-01-18 01:07:52 +01:00
1 parent af4958a5e8
commit b8d5bea7ae
5 files changed
+26 -17

No files matched your search

@@ -8,7 +8,7 @@ public protocol FileServicing {
// MARK: Functions
func copyItem(from source: URL, to destination: URL) async throws (FileServiceError)
func copyFile(from source: URL, to destination: URL) async throws (FileServiceError)
func createFolder(at location: URL) async throws (FileServiceError)
func deleteItem(at location: URL) async throws (FileServiceError)
func isItemExists(at location: URL) async throws (FileServiceError) -> Bool
@@ -19,8 +19,9 @@ public protocol FileServicing {
public enum FileServiceError: Error, Equatable {
case folderNotCreated
case itemNotCopied
case itemAlreadyExists
case itemEmptyData
case itemNotCopied
case itemNotDeleted
case itemNotExists
case itemNotFileURL