File-mount symlink creation fails for paths containing spaces
Author: kevinmingtarjaCreated Sep 24, 2026Updated Sep 25, 2026
`FileMountHelper.make_safe_symlink_command()` interpolates paths without shell quoting and splits parent paths on whitespace. A destination such as `/data/mounted file.txt` produces malformed `test`/`ln` commands, potentially reporting `binary operator expected` or incorrectly claiming the destination exists. Quote literal paths and preserve spaces during parent-directory traversal, while retaining home-directory expansion for shell-expression targets.
Source: skypilot-org/skypilot