Closed douglas-raillard-arm closed 3 years ago
Connections push/pull are expected to follow the same behavior as the cp command, which is not the case when using use_scp=True on an ssh connection:
cp
use_scp=True
EDIT: THIS IS CURRENTLY DANGEROUS, DO NOT RUN (it will attempt to shutil.rmtree the current folder when using sftp. Solved by https://github.com/ARM-software/devlib/pull/560)
# This will fail with a PermissionError target.pull('/path/to/file/', '.')
EDIT: This only fails if the destination already exists.
Connections push/pull are expected to follow the same behavior as the
cp
command, which is not the case when usinguse_scp=True
on an ssh connection:EDIT: THIS IS CURRENTLY DANGEROUS, DO NOT RUN (it will attempt to shutil.rmtree the current folder when using sftp. Solved by https://github.com/ARM-software/devlib/pull/560)
EDIT: This only fails if the destination already exists.