docs: def isdir(path):
      """
      Return True if path is an existing directory.
  
      Equivalent to "os.path.isdir".
  
      Args:
          path (path-like object): Path or URL.
  
      Returns:
          bool: True if directory exists.
      """
      system = get_instance(path)
  
      # User may use directory path without trailing '/'
      # like on standard file systems
      return system.isdir(system.ensure_dir_path(path))