wslpath2-0.0.1 has been yanked.
wslpath2
You can use wslpath2
to convert a WSL Path to a Windows Path and vice versa.
Internally it calls the wslpath.exe
utility which is a Linux-based utility created by Microsoft to convert Windows and Linux paths.
About this fork
This is a fork of wslpath by pratikpc with the following changes:
- Uses Rust 2021 edition
- Adds settings enum to closely map to wslpath.exe's command line arguments
- Updated to the newest version of wslpath.exe
- Handles errors properly
Usage
The main function is convert
which has the following signature:
let path = convert;
Also see the examples folder.