Skip to content

FileSystemAdapter.exists method

FileSystemAdapter › 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>