1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

utils/ssh: Add logging to sftp file transfer

This commit is contained in:
Marc Bonnici 2020-05-13 11:02:26 +01:00
parent d2aea077b4
commit 21cb10f550

View File

@ -486,6 +486,7 @@ class SshConnection(SshConnectionBase):
@classmethod
def _push_path(cls, sftp, src, dst):
logger.debug('Pushing via sftp: {} -> {}'.format(src,dst))
push = cls._push_folder if os.path.isdir(src) else cls._push_file
push(sftp, src, dst)
@ -525,6 +526,7 @@ class SshConnection(SshConnectionBase):
@classmethod
def _pull_path(cls, sftp, src, dst):
logger.debug('Pulling via sftp: {} -> {}'.format(src,dst))
try:
cls._pull_file(sftp, src, dst)
except IOError: