The main purpose of the PR is adding the copy_to_dir() helper in tbot_contrib.utils. This helper can be used to copy one or many files to a directory. The copies will each have the same name as the respective source file. copy_to_dir() will return the path(s) to the copies.
Under the hood, it uses copy() which was moved from tc.shell to machine.linux (although the old name still exists for compat). This means that copy_to_dir() also works across SSH connections.
The main purpose of the PR is adding the
copy_to_dir()
helper intbot_contrib.utils
. This helper can be used to copy one or many files to a directory. The copies will each have the same name as the respective source file.copy_to_dir()
will return the path(s) to the copies.Under the hood, it uses
copy()
which was moved fromtc.shell
tomachine.linux
(although the old name still exists for compat). This means thatcopy_to_dir()
also works across SSH connections.Documentation: https://tbot.tools/contrib/utils.html#tbot_contrib.utils.copy_to_dir