Skip to content

Commit

Permalink
Fixing copy directory
Browse files Browse the repository at this point in the history
When copying directory, the ItemType was missing and the copy
process was failing.
  • Loading branch information
vvidovic-croz committed May 22, 2023
1 parent 61f8f41 commit 4c266ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ui/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1298,11 +1298,16 @@ func copyDirsOrFilestores(fromRepo, toRepo repo.Repo, fromViewConfig, toViewConf
return confirmOverwrite, err
}

showProgressDialog("Copying files from DataPower...")
showProgressDialog("Copying files from/to DataPower...")
defer hideProgressDialog()
for _, item := range items {
if item.Name != ".." {
childToType, err := toRepo.GetFileType(toViewConfig, toViewConfig.Path, dirToName)
if err != nil {
return confirmOverwrite, err
}
toViewConfigDir := model.ItemConfig{Parent: toViewConfig,
Type: childToType,
Path: toRepo.GetFilePath(toViewConfig.Path, dirToName),
DpAppliance: toViewConfig.DpAppliance,
DpDomain: toViewConfig.DpDomain,
Expand Down

0 comments on commit 4c266ee

Please sign in to comment.