Files
kubernetes/pkg/kubectl/cmd
Kubernetes Submit Queue d042a1d7d1 Merge pull request #51595 from WanLinghao/kubectl_cp_error
Automatic merge from submit-queue (batch tested with PRs 51438, 52182, 51607, 47912, 51595). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>..

fix kubectl cp command error

fix kubectl cp command error.

modified:   pkg/kubectl/cmd/cp.go



**What this PR does / why we need it**:
fix kubectl cp error.
it happens when copy directory to pod and the directory path ends with '/'.
for example:
kubectl cp /tmp/test/ test-pod:/tmp/test/
it will fail with 
error: stat /tmp/test/test: no such file or directory

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes 

**Special notes for your reviewer**:

**Release note**:

```release-note
```
2017-09-23 08:09:54 -07:00
..
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-06-05 11:06:48 +08:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-06-26 11:38:36 -04:00
2017-08-25 19:53:22 +08:00
2017-09-11 17:22:13 +08:00
2017-09-11 17:22:13 +08:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-08-16 10:58:51 +02:00
2017-06-30 15:00:24 -07:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-06-05 11:06:48 +08:00
2017-08-16 12:27:36 -07:00
2017-08-16 10:58:51 +02:00
2017-08-16 12:27:36 -07:00
2017-08-16 12:27:36 -07:00
2017-05-11 20:09:31 +08:00
2017-08-16 12:27:36 -07:00
2017-08-16 10:58:51 +02:00
2017-08-17 18:08:26 -04:00
2017-08-17 18:08:26 -04:00
2017-08-16 12:27:36 -07:00