diff options
author | Qi Wang <qiwan@redhat.com> | 2019-04-03 14:40:46 -0400 |
---|---|---|
committer | Qi Wang <qiwan@redhat.com> | 2019-04-04 12:45:12 -0400 |
commit | 84620021b09778d64d7516e693301d0a08f082c9 (patch) | |
tree | 7a67297ee61b7ec92162c217fe32c759e964a962 /docs/podman-rm.1.md | |
parent | 1759eb09e1c13bc8392d515d69ca93226d067c73 (diff) | |
download | podman-84620021b09778d64d7516e693301d0a08f082c9.tar.gz podman-84620021b09778d64d7516e693301d0a08f082c9.tar.bz2 podman-84620021b09778d64d7516e693301d0a08f082c9.zip |
fix bug podman cp directory
`podman cp` used to copy the contents under the source directory to the destination. But according to the specification in podman-cp.md. it should copy the whole directory to the destination if the destination directory already exists.
- src dir ends with /., copy the contents to dest dir
- src dir does not end with /.
- dest dir /home does not exist, copy the contents
- dest dir /home exists, copy the directory
```
$ sudo podman cp /home/qiwan/Documents/empty 7c47:/home
$ sudo podman exec -it 7c47 ls /home
$
$ sudo podman cp /home/qiwan/Documents/empty 7c47:/home
$ sudo podman exec -it 7c47 ls /home
empty
```
Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'docs/podman-rm.1.md')
0 files changed, 0 insertions, 0 deletions