#10866·skypilot

包含空格的路径无法创建文件挂载符号链接

作者: kevinmingtarja创建于 2026年9月24日更新于 2026年9月25日

`FileMountHelper.make_safe_symlink_command()` 会在没有 shell 引用的情况下插入路径,并在空格处分割父路径。例如,目标为 `/data/mounted file.txt` 会产生格式不正确的 `test`/`ln` 命令,可能会报告 `binary operator expected` 或错误地声称目标存在。在父目录遍历期间,请对字面路径进行引用并保留空格,同时保留 shell 表达式目标的主目录扩展。

内容来源: skypilot-org/skypilot