Skip to content

Conversation

@tomerd
Copy link
Contributor

@tomerd tomerd commented May 10, 2023

No description provided.

public struct AbsolutePath: Hashable, Sendable {
/// Root directory (whose string representation is just a path separator).
public static let root = Self(TSCAbsolutePath.root)
public static let root = Self(FilePath("/"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like there's something called FilePath.Root which can also represent the multiple roots on Windows. Seems like we should switch to that, at least eventually.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@compnerd I guess we will need to #if here for windows. what would be the right representation of windows root here?

@tomerd tomerd marked this pull request as draft May 10, 2023 17:08
@tomerd tomerd self-assigned this May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants