Skip to content

CapacitorAdapterFs.exists method

CapacitorAdapterFs › exists

Unofficial

Check whether a file exists at the given path.

Signature:

exists(realPath: string): Promise<boolean>

Parameters:

Parameter Type Description
realPath string File path to check.

Returns: Promise<boolean>Whether the file exists.