Closed cnsino closed 5 months ago
mc cp -r minio/assets/asset-20240425082735/abc.zip /asset-20240425082735/code.zip && cd /asset-20240425082735 && unzip code.zip
However, the final copied path is:/asset-20240425082735/code.zip/abc.zip
minio/assets/asset-20240425082735/abc.zip -> asset-20240425082735/code.zip/abc.zip
minio/assets/asset-20240425082735/abc.zip
asset-20240425082735/code.zip/abc.zip
S3 has no concept of directories, so minio/assets/asset-20240425082735/abc.zip is a prefix, which can return many results. So we cannot just write it to a single file.
Either way we cannot change this behavior.
Expected behavior (Copy to code.zip)
mc cp -r minio/assets/asset-20240425082735/abc.zip /asset-20240425082735/code.zip && cd /asset-20240425082735 && unzip code.zip
Actual behavior
However, the final copied path is:/asset-20240425082735/code.zip/abc.zip
Steps to reproduce the behavior
mc --version
System information
minio/assets/asset-20240425082735/abc.zip
->asset-20240425082735/code.zip/abc.zip