Skip to content

put -r from WSL: the Windows sidecar opens /mnt/<drive> paths - #120

Merged
bdbarnett merged 1 commit into
mainfrom
fix/put-r-wsl-path
Oct 16, 2026
Merged

bdbarnett merged 1 commit into
mainfrom
fix/put-r-wsl-path

Conversation

@bdbarnett

Copy link
Copy Markdown
Collaborator

Under WSL, mpftp put -r /mnt/c/.../folder /dest failed with "local path not found" for a folder that exists: the CLI passed its resolved path to the sidecar, which runs under Windows Python. The sidecar now tries the Windows spelling of a /mnt/<drive>/... path before giving up, and walks that.

Tested on an ESP32-S3: a 17-file folder copied and verified, 17 of 17. Unit tests for the path translation added to cli/tests/test_put.py.

A recursive put handed the sidecar the path the CLI resolved, which under WSL
is /mnt/c/...; the sidecar runs under Windows Python and answered "local path
not found" for a folder that exists. It now tries the Windows spelling of a
WSL mount path before giving up, and walks that.
@bdbarnett
bdbarnett merged commit 1d21801 into main Oct 16, 2026
4 checks passed
@bdbarnett
bdbarnett deleted the fix/put-r-wsl-path branch October 16, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant