The thing although Windows works with forward slashes some tools might
not work with forward slashes, so toNativePath could be useful there.

Then again for example GIT doesn't work with backward slashes (at
least .gitignore doesn't want to work with it). So maybe it should
have an optional parameter that chooses between Posix or Windows
paths..

Or we can just use string.replace("/", r"\"); But having it in
std.path would be more useful.

Reply via email to