Function exist

  • Checks if a file or directory exists and is readable.

    Parameters

    • target: string

      The path to the file or directory to check.

    Returns Promise<boolean>

    A promise that resolves to a boolean indicating if the target exists and is readable.

    Example

    const filePath = "path/to/file";
    const exists = await exist(filePath);

Generated using TypeDoc