mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-04 07:51:21 +00:00 
			
		
		
		
	utils/ssh: Add logging to sftp file transfer
This commit is contained in:
		@@ -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:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user