code: def isdir(self, path):
          
          try:
              self.remote_context.check_output(["test", "-d", path])
          except subprocess.CalledProcessError as e:
              if e.returncode == 1:
                  return False
              else:
                  raise
          return True
docs: Return `True` if directory at `path` exist, False otherwise.