Implemented the "init(at: )" initialiser, the "pathString" computed property, and the "appendingPath(_: )" function for the URL+Extensions extension in the library target.

This commit is contained in:
2025-01-12 21:25:51 +01:00
parent 3a447b4f71
commit a1ad391baa
5 changed files with 114 additions and 38 deletions
@@ -27,12 +27,8 @@ public struct CreateRootFolderTask {
} else {
await fileService.currentFolder
}
let newFolder = if #available(macOS 13.0, *) {
rootFolder.appending(path: name)
} else {
rootFolder.appendingPathComponent(name)
}
let newFolder = rootFolder.appendingPath(name)
try await fileService.createFolder(at: newFolder)