diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2021-03-05 15:57:51 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2021-03-09 09:02:14 +0100 |
commit | 31b11b5cd62093d86891d32e0912661814d6b78b (patch) | |
tree | 85be5b57026db8b8e1cf4b867b2c4b7c557e359d /test/framework | |
parent | a61d70cf8ef8666be87758dd3875a01ccdcc4c53 (diff) | |
download | podman-31b11b5cd62093d86891d32e0912661814d6b78b.tar.gz podman-31b11b5cd62093d86891d32e0912661814d6b78b.tar.bz2 podman-31b11b5cd62093d86891d32e0912661814d6b78b.zip |
podman cp: fix copying to a non-existent dir
Copy is full of perils. Some of them are the nuances when copying
directories. Who would have thought that
* cp dir foo
* cp dir/ foo
* cp dir/. foo
are all supposed to yield the same result when foo does not exist.
`podman cp` now supports all three notations, which required to massage
the front-end code in `cmd/podman` a bit. The tests have been extended
and partially rewritten to test container->host and host->container
copy operations.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'test/framework')
0 files changed, 0 insertions, 0 deletions