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:
parent
d2aea077b4
commit
21cb10f550
@ -486,6 +486,7 @@ class SshConnection(SshConnectionBase):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _push_path(cls, sftp, src, dst):
|
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 = cls._push_folder if os.path.isdir(src) else cls._push_file
|
||||||
push(sftp, src, dst)
|
push(sftp, src, dst)
|
||||||
|
|
||||||
@ -525,6 +526,7 @@ class SshConnection(SshConnectionBase):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _pull_path(cls, sftp, src, dst):
|
def _pull_path(cls, sftp, src, dst):
|
||||||
|
logger.debug('Pulling via sftp: {} -> {}'.format(src,dst))
|
||||||
try:
|
try:
|
||||||
cls._pull_file(sftp, src, dst)
|
cls._pull_file(sftp, src, dst)
|
||||||
except IOError:
|
except IOError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user