• Check if a file or directory is hidden.

    Note that path may be effectively hidden if any of the ancestor directories are hidden: use isHiddenRecursive to check for this.

    Parameters

    • pathname: string

      Path to file or directory

    Returns Promise<boolean>

    Promise resolving to boolean indicating hidden state