Skip to content

Commit 415d6f8

Browse files
authored
Merge pull request #168 from tgymnich/fix-cachesDirectory
Fix cachesDirectory using a file URL instead of a path
2 parents d59c9e0 + 67c42bd commit 415d6f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/TSCBasic/FileSystem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ private class LocalFileSystem: FileSystem {
342342
}
343343

344344
var cachesDirectory: AbsolutePath? {
345-
return FileManager.default.urls(for: .cachesDirectory, in: .userDomainMask).first.flatMap { AbsolutePath($0.absoluteString) }
345+
return FileManager.default.urls(for: .cachesDirectory, in: .userDomainMask).first.flatMap { AbsolutePath($0.path) }
346346
}
347347

348348
func getDirectoryContents(_ path: AbsolutePath) throws -> [String] {

0 commit comments

Comments
 (0)