Skip to content

Better Windows' volume detection#1802

Open
oldergod wants to merge 1 commit intomasterfrom
bquenaudon.2026-04-20.windowspath
Open

Better Windows' volume detection#1802
oldergod wants to merge 1 commit intomasterfrom
bquenaudon.2026-04-20.windowspath

Conversation

@oldergod
Copy link
Copy Markdown
Member

Windows accepts both / and \ !


@Suppress("NOTHING_TO_INLINE")
internal inline fun Path.commonVolumeLetter(): Char? {
if (bytes.indexOf(SLASH) != -1) return null
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was preventing forward slashes from being accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant