Skip to content

Fix wrong path-filename separation on Windows. - #254

Merged
l-kramer merged 2 commits into
masterfrom
windows_watcher_path_fix
Feb 12, 2026
Merged

Fix wrong path-filename separation on Windows.#254
l-kramer merged 2 commits into
masterfrom
windows_watcher_path_fix

Conversation

@s-ludwig

Copy link
Copy Markdown
Member

An (invalid) Windows path, such as "foo\bar:baz" is getting separated at the colon instead of at the backslash by Phobos' dirName/baseName functions. To fix this, this switches to lastIndexOfAny.

@s-ludwig
s-ludwig requested a review from l-kramer February 12, 2026 15:00
@s-ludwig
s-ludwig force-pushed the windows_watcher_path_fix branch from 7973c49 to 5c4443e Compare February 12, 2026 15:09
An (invalid) Windows path, such as "foo\\bar:baz" is getting separated at the colon instead of at the backslash by Phobos' dirName/baseName functions. To fix this, this switches to lastIndexOfAny.
@s-ludwig
s-ludwig force-pushed the windows_watcher_path_fix branch from 5c4443e to 01a2ca6 Compare February 12, 2026 15:23
@l-kramer
l-kramer merged commit ced2259 into master Feb 12, 2026
32 of 36 checks passed
@s-ludwig
s-ludwig deleted the windows_watcher_path_fix branch February 13, 2026 08:14
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.

2 participants