mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-11 23:10:10 +01:00
remote: ssh: remove unused code
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -75,15 +75,6 @@ class RemoteSSH(RemoteBase):
|
||||
|
||||
return ssh
|
||||
|
||||
def _exists(self, ssh, path_info):
|
||||
try:
|
||||
ssh.open_sftp().open(path_info['path'], 'r')
|
||||
return True
|
||||
except IOError as exc:
|
||||
if exc.errno != errno.ENOENT:
|
||||
raise
|
||||
return False
|
||||
|
||||
def exists(self, path_infos):
|
||||
ret = []
|
||||
ssh = self.ssh(host=self.host, user=self.user)
|
||||
|
||||
Reference in New Issue
Block a user