code: def walk(self, dirpath):
          
          if self.is_ssh(dirpath):
              self._check_ftp()
              remotepath = self._get_remote(dirpath)
              return self._sftp_walk(remotepath)
          else:
              return os.walk(dirpath)
docs: Performs an os.walk on a local or SSH filepath.