返回顶部
w

wsl-path-converter

Convert Windows paths to WSL paths for file operations in WSL environment

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
101
下载量
0
收藏
概述
安装方式
版本历史

wsl-path-converter

# WSL path conversion skills This skill is used to convert Windows paths to WSL paths, enabling correct access to Windows files in the WSL environment. ## Function Description In the WSL environment, the disk partitions of Windows are mounted under the `/mnt/` directory, for example: - `C:\` → `/mnt/c/` - `E:\` → `/mnt/e/` This skill can automatically recognize the Windows path format and convert it into a path accessible by WSL. ## Usage The skill will automatically handle path conversion. When you provide a path in Windows format, it will be automatically converted to WSL format. ## Example When you mentioned a similar path: - `E:\projects\chess_game.png` → automatically converted to `/mnt/e/projects/chess_game.png` - `C:\Users\Documents\file.txt` → automatically converted to `/mnt/c/Users/Documents/file.txt` - `D:\data\images\photo.jpg` → automatically converted to `/mnt/d/data/images/photo.jpg` ## Conversion Rules 1. Recognize Windows paths in the format of `X:\` 2. Convert it to the `/mnt/x/` format 3. Convert the Windows path separator `\` to the Unix path separator `/` 4. Keep the rest of the path unchanged ## Application Scenario - Read files from Windows disks - Access project files in Windows - Manipulate images or other resources in Windows - Handle Windows paths in the WSL environment

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 wsl-path-converter-1776123601 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 wsl-path-converter-1776123601 技能

通过命令行安装

skillhub install wsl-path-converter-1776123601

下载 Zip 包

⬇ 下载 wsl-path-converter v1.0.0

文件大小: 1.3 KB | 发布时间: 2026-4-14 12:59

v1.0.0 最新 2026-4-14 12:59
- Initial release of wsl-path-converter.
- Converts Windows paths (e.g., `C:\Users\file.txt`) to WSL-compatible paths (e.g., `/mnt/c/Users/file.txt`).
- Automatically detects and translates path separators and drive letters.
- Designed for file operations and resource access across Windows and WSL environments.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部