function toSlashes(osPath) {
    return osPath.replace(/[\\/]/g, posix.sep);
}
Takes a Windows OS path and changes backward slashes to forward slashes.
This should only be done for OS paths from Windows (or user provided paths potentially from Windows).
Using it on a Linux or MaxOS path might change it.