Skip to content

CapacitorAdapter.exists method

CapacitorAdapter › exists

Official

Checks if a file exists.

Signature:

exists(normalizedPath: string, sensitive?: boolean | undefined): Promise<boolean>

Parameters:

ParameterTypeDescription
normalizedPathstring
sensitive?boolean | undefined*(Optional)*

Returns: Promise<boolean>

Since: 1.7.2