Repository navigation
put -r src/ /dest copies the folder's contents in place (#185) - #192
Merged
Merged
Conversation
bdbarnett
force-pushed
the
put-r-trailing-slash
branch
from
October 30, 2026 04:30
92d1461 to
afd06b4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A trailing slash on the folder you upload now means "its contents", as in rsync.
mpftp put -r ./cast/ /castcopies the files into/cast(created if missing) and replaces changed files in place, so re-uploading a library no longer nests it as/cast/cast.Without the slash nothing changes:
put -r ./cast /caststill behaves likecp -r.get -r /cast/ ./castreads the slash the same way, and so doescpbetween two boards.Files on the board that the source folder lacks are left alone, as with rsync without
--delete. The docs say so and point tompftp rm.Updated:
put -r/get -r--help, the CLI reference, the file-transfer guide (where the nesting trap was explained) and the changelog.Tested on an ESP32-P4 over serial: a first upload of 3 files, a re-upload that changed one file, added one and dropped one (the dropped one stayed on the board; the changed file hashed equal to the local copy), and the no-slash form still nested. Fixes #185.