← 返回
未分类 中文

wsl-path-converter

Convert Windows paths to WSL paths for file operations in WSL environment
在WSL环境中,将Windows路径转换为WSL路径以进行文件操作
weiqihan weiqihan 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 433
下载
💾 5
安装
1
版本
#latest

概述

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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 04:14 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 681 📥 329,025
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 75 📥 182,331
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 196 📥 67,898