Skip to content

Commit 86c9459

Browse files
committed
Use relative path when storing beta tester file path
1 parent 68de2ce commit 86c9459

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Sources/FileSystem/Beta Tester/BetaTesterProcessor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct BetaTesterProcessor {
1616

1717
try file.write(testers.renderAsCSV())
1818

19-
return file.name
19+
return file.path(relativeTo: try Folder(path: FileManager.default.currentDirectoryPath))
2020
}
2121
}
2222

Sources/FileSystem/Readers.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ public enum Readers {
6060
}
6161

6262
guard
63-
let url = URL(string: "file://\(filePath)"),
64-
let result = try? decoder.decode(T.self, from: url) else {
63+
let result = try? decoder.decode(T.self, from: URL(fileURLWithPath: filePath)) else {
6564
fatalError("Could not read CSV file: \(filePath)")
6665
}
6766

0 commit comments

Comments
 (0)