mirror of
https://github.com/minio/mc.git
synced 2025-11-13 12:22:45 +03:00
Full cleanup of s3 client for mc
This commit is contained in:
6
cp.go
6
cp.go
@@ -85,11 +85,11 @@ func doCopySingleSourceRecursive(methods clientMethods, sourceURL, targetURL str
|
||||
if err != nil {
|
||||
return iodine.New(err, nil)
|
||||
}
|
||||
for itemCh := range sourceClnt.ListRecursive() {
|
||||
if itemCh.Err != nil {
|
||||
for contentCh := range sourceClnt.ListRecursive() {
|
||||
if contentCh.Err != nil {
|
||||
continue
|
||||
}
|
||||
newSourceURL, newTargetURL := getNewURLRecursive(sourceURL, targetURL, itemCh.Item.Name)
|
||||
newSourceURL, newTargetURL := getNewURLRecursive(sourceURL, targetURL, contentCh.Content.Name)
|
||||
if err := doCopySingleSource(methods, newSourceURL, newTargetURL, sourceConfig, targetConfig); err != nil {
|
||||
// verify for directory related errors, if "open" failed on directories ignore those errors
|
||||
switch e := iodine.ToError(err).(type) {
|
||||
|
||||
Reference in New Issue
Block a user