Signed-off-by: Hu Keping <hukeping@huawei.com>
| ... | ... |
@@ -295,15 +295,6 @@ func fileServer(files map[string]string) (*FileServer, error) {
|
| 295 | 295 |
}, nil |
| 296 | 296 |
} |
| 297 | 297 |
|
| 298 |
-func copyWithCP(source, target string) error {
|
|
| 299 |
- copyCmd := exec.Command("cp", "-rp", source, target)
|
|
| 300 |
- out, exitCode, err := runCommandWithOutput(copyCmd) |
|
| 301 |
- if err != nil || exitCode != 0 {
|
|
| 302 |
- return fmt.Errorf("failed to copy: error: %q ,output: %q", err, out)
|
|
| 303 |
- } |
|
| 304 |
- return nil |
|
| 305 |
-} |
|
| 306 |
- |
|
| 307 | 298 |
// randomUnixTmpDirPath provides a temporary unix path with rand string appended. |
| 308 | 299 |
// does not create or checks if it exists. |
| 309 | 300 |
func randomUnixTmpDirPath(s string) string {
|