Moved the files under the "Resources/Files" folder in the library target to the "Resources/Files/Sources" folder.

This commit is contained in:
2025-01-18 12:41:09 +01:00
parent 3f8651ca52
commit 0b69973537
9 changed files with 17 additions and 17 deletions
@@ -20,17 +20,17 @@ public struct CopyFilesTask {
// MARK: Functions
public func callAsFunction(to rootFolder: URL) async throws (FileServiceError) {
for resource in File.allCases {
for file in File.allCases {
guard let source = bundleService.url(
forResource: resource.rawValue,
forResource: file.rawValue,
withExtension: nil,
subdirectory: resource.resourcePath
subdirectory: file.resourcePath
) else {
assertionFailure("URL should have been initialized.")
return
}
let destination = rootFolder.appendingPath(resource.filePath)
let destination = rootFolder.appendingPath(file.filePath)
try await fileService.copyFile(from: source, to: destination)
}