Improved the naming of the functions for the FileServicing protocol in the library target.

This commit is contained in:
2025-01-13 23:27:50 +01:00
parent df556f83ab
commit 26fde119ef
6 changed files with 69 additions and 69 deletions
@@ -8,9 +8,9 @@ public protocol FileServicing {
// MARK: Functions
func createFolder(at url: URL) async throws (FileServiceError)
func delete(at url: URL) async throws (FileServiceError)
func exists(at url: URL) async throws (FileServiceError) -> Bool
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
}
@@ -18,8 +18,8 @@ public protocol FileServicing {
public enum FileServiceError: Error, Equatable {
case folderNotCreated
case urlAlreadyExists
case urlNotDeleted
case urlNotExists
case urlNotFileURL
case itemAlreadyExists
case itemNotDeleted
case itemNotExists
case itemNotFileURL
}