-
Notifications
You must be signed in to change notification settings - Fork 537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mc ls/cp --recursive source dest get unexpected files #4722
Comments
That is expected behavior, its called prefix match. |
@harshavardhana Thanks. I know the option "--recursive" is target to folder copy only. And it's diff with linux ls/cp command, "-r" will not call the prefix match, prefix* can do this match. |
just add |
@harshavardhana Thanks add / as testFolder/, it just copy all files in testFolder like testFolder/* and the output is destPath/filesIntestFolder not I want. I want copy the folder with path to destPath like destPath/testFolder as result. |
Then do |
Expected behavior
Take cp command as example, cp one file(testFile) only.
Actual behavior
copy 2 files testFile and testFile1.
Steps to reproduce the behavior
In source path, it includes 2 files, testFile and testFile1.
mc cp --recursive ./testFile $destpath
It copy testFile and testFile1 like copy testFile*.
mc --version
mc --version
)mc --version
mc version DEVELOPMENT.GOGET (commit-id=DEVELOPMENT.GOGET)
Runtime: go1.21.1 linux/amd64
Copyright (c) 2015-0000 MinIO, Inc.
License GNU AGPLv3 https://www.gnu.org/licenses/agpl-3.0.html
System information
The text was updated successfully, but these errors were encountered: