https://github.com/h2cone/wslp
Convert Windows path to WSL path and vice versa.
https://github.com/h2cone/wslp
cli filepath path windows wsl
Last synced: about 2 months ago
JSON representation
Convert Windows path to WSL path and vice versa.
- Host: GitHub
- URL: https://github.com/h2cone/wslp
- Owner: h2cone
- License: apache-2.0
- Created: 2024-07-29T03:19:15.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-03T09:15:56.000Z (almost 2 years ago)
- Last Synced: 2025-04-05T16:37:48.244Z (about 1 year ago)
- Topics: cli, filepath, path, windows, wsl
- Language: Rust
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wslp
`wslp` is a command-line tool to convert Windows paths to WSL paths and vice versa.
## Installation
```shell
git clone https://github.com/h2cone/wslp.git
cd wslp
cargo install --path .
```
## Usage
To convert Windows paths to WSL paths:
```shell
wslp 'x:\path\to\file'
```
Output:
```shell
/mnt/x/path/to/file
```
To convert WSL paths to Windows paths, use the --reverse or -r flag:
```shell
wslp -r /mnt/x/path/to/file
```
Output:
```shell
x:\path\to\file
```