Skip to content

Commit

Permalink
Use old API
Browse files Browse the repository at this point in the history
  • Loading branch information
pepicrft committed Jul 23, 2024
1 parent 8b97e69 commit 7bad0ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import PackageDescription

let package = Package(
name: "FileSystem",
platforms: [.macOS("13.0")],
platforms: [.macOS("12.0")],
products: [
.library(
name: "FileSystem",
Expand Down
3 changes: 2 additions & 1 deletion Sources/FileSystem/FileSystem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,8 @@ public struct FileSystem: FileSysteming, Sendable {
skipHiddenFiles: skipHiddenFiles
)
// swiftlint:disable:next force_try
return stream.map { try! Path.AbsolutePath(validating: $0.path()) }.eraseToAnyThrowingAsyncSequenceable()
return stream.map { try! Path.AbsolutePath(validating: $0.absoluteString.replacingOccurrences(of: "file://", with: "")) }
.eraseToAnyThrowingAsyncSequenceable()
}
}

Expand Down

0 comments on commit 7bad0ac

Please sign in to comment.