Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 5 days 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 (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-03T09:15:56.000Z (5 months ago)
- Last Synced: 2024-08-03T10:29:19.793Z (5 months 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
```