Function exists

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

    Parameters

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

          • exists: boolean

          Returns unknown

    Returns void

    Deprecated

    Use stat or access instead.