Skip to content

fix: use os path when watching for changes#744

Open
BrownBuilding wants to merge 2 commits intostevearc:masterfrom
BrownBuilding:master
Open

fix: use os path when watching for changes#744
BrownBuilding wants to merge 2 commits intostevearc:masterfrom
BrownBuilding:master

Conversation

@BrownBuilding
Copy link
Copy Markdown

Call fs.posix_to_os_path on the path parsed from the oil://*-url before handing it off to uv.fs_event_start. Not doing so breaks watch_for_changes on MS Windows.

(On Windows oil://C/mydir/subdir/ would cause uv.fs_event_start to be called with C/mydir/subdir/ rather than C:\mydir\subdir\)

Call `fs.posix_to_os_path` on the path parsed from the `oil://*`-url
before handing it off to uv.fs_event_start. Not doing so breaks
watch_for_changes on MS Windows.

(On Windows `oil://C/mydir/subdir/` would cause uv.fs_event_start to be
called with `C/mydir/subdir/` rather than `C:\mydir\subdir\`)
@github-actions github-actions bot requested a review from stevearc April 1, 2026 19:55
@BrownBuilding BrownBuilding marked this pull request as draft April 2, 2026 15:56
@BrownBuilding
Copy link
Copy Markdown
Author

the top level drive view breaks on windows

Make sure not to register an fs_event for '/' on windows, since
posix_to_os_path will throw an error, preventing the top level windows
drives from being shown.
@BrownBuilding BrownBuilding marked this pull request as ready for review April 2, 2026 18:56
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