mirror of
https://github.com/containers/podman.git
synced 2025-10-18 03:33:32 +08:00
Introduce podman machine cp
command
Add a new `podman machine cp` subcommand to allow users to copy files or directories between a running Podman Machine and their host. Tests cover the following cases: - Copy a file from the host machine to the VM - Copy a directory from the host machine to the VM - Copy a file from the VM to the host machine - Copy a directory from the VM to the host machine - Copy a file to a directory - Copy a directory to a file Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
This commit is contained in:
@ -7,7 +7,7 @@ import (
|
||||
"unicode"
|
||||
)
|
||||
|
||||
func isHostWinPath(path string) bool {
|
||||
func IsHostWinPath(path string) bool {
|
||||
return shouldResolveWinPaths() && strings.HasPrefix(path, `\\`) || hasWinDriveScheme(path, 0) || winPathExists(path)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user