Skip to content

Commit e5b1aa9

Browse files
committed
[FAB-10371] Remove copyDir function
This function is no longer being used after refactor. Change-Id: I127ad3d399fdca87e23f819c6879fd2d15dd827b Signed-off-by: Latitia M Haskins <latitia.haskins@gmail.com>
1 parent be47c0e commit e5b1aa9

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

integration/e2e/setup.go

+1-16
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919

2020
func setupWorld(w *world.World) {
2121
w.BootstrapNetwork()
22-
copyFile(filepath.Join("testdata", "orderer.yaml"), filepath.Join(testDir, "orderer.yaml"))
22+
copyFile(filepath.Join("testdata", "orderer.yaml"), filepath.Join(w.Rootpath, "orderer.yaml"))
2323
copyPeerConfigs(w.PeerOrgs, w.Rootpath)
2424
w.BuildNetwork()
2525
err := w.SetupChannel()
@@ -33,21 +33,6 @@ func copyFile(src, dest string) {
3333
Expect(err).NotTo(HaveOccurred())
3434
}
3535

36-
func copyDir(src, dest string) {
37-
os.MkdirAll(dest, 0755)
38-
objects, err := ioutil.ReadDir(src)
39-
for _, obj := range objects {
40-
srcfileptr := src + "/" + obj.Name()
41-
destfileptr := dest + "/" + obj.Name()
42-
if obj.IsDir() {
43-
copyDir(srcfileptr, destfileptr)
44-
} else {
45-
copyFile(srcfileptr, destfileptr)
46-
}
47-
}
48-
Expect(err).NotTo(HaveOccurred())
49-
}
50-
5136
func copyPeerConfigs(peerOrgs []world.PeerOrgConfig, rootPath string) {
5237
for _, peerOrg := range peerOrgs {
5338
for peer := 0; peer < peerOrg.PeerCount; peer++ {

0 commit comments

Comments
 (0)