Stops 'mc cp --attr' preserve file attributes without '--preserve' (#3625)

This commit is contained in:
ebozduman
2021-02-25 09:32:44 -08:00
committed by GitHub
parent 18da584d5a
commit cb909f5ce5
-1
View File
@@ -522,7 +522,6 @@ func doCopySession(ctx context.Context, cancelCopy context.CancelFunc, cli *cli.
preserve := cli.Bool("preserve")
if cli.String("attr") != "" {
preserve = true
userMetaMap, _ := getMetaDataEntry(cli.String("attr"))
for metadataKey, metaDataVal := range userMetaMap {
cpURLs.TargetContent.UserMetadata[metadataKey] = metaDataVal