Function exists

  • Test whether or not path exists by checking with the file system. Then call the callback argument with either true or false.

    Parameters

    • path: PathLike
    • cb: ((exists: boolean) => unknown) = nop
        • (exists): unknown
        • Parameters

          • exists: boolean

          Returns unknown

    Returns void

    Use stat or access instead.