minio / mc

Unix like utilities for object store
https://min.io/download
GNU Affero General Public License v3.0
2.86k stars 548 forks source link

mc cp bug #4734

Closed donatello closed 1 year ago

donatello commented 1 year ago

Expected behavior

With files in the current directory like:

internal/
internal.tar
mc cp -r internal play/test

should copy only the internal/ directory recursively.

Actual behavior

internal.tar is also being copied by mc.

Steps to reproduce the behavior

As described above.

mc --version

Current master

System information

Linux.

harshavardhana commented 1 year ago

this is not a bug @donatello its called prefix match you need to copy the directory you need to add / at the end.