docs: def lsdirs(root=".", **kwargs):
      """
      Return only subdirectories from a directory listing.
  
      Arguments:
  
          root (str): Path to directory. Can be relative or absolute.
          **kwargs: Any additional arguments to be passed to ls().
  
      Returns:
  
          list of str: A list of directory paths.
  
      Raises:
  
          OSError: If root directory does not exist.
      """
      paths = ls(root=root, **kwargs)
      if isfile(root):
          return []
      return [_path for _path in paths if isdir(path(root, _path))]