Back to Pocketbase

Interface isExist

static/jsvm/interfaces/os.isExist.html

latest683 B
Original Source

Interface isExist

Hierarchy

  • isExist

  • isExist(err): boolean

IsExist returns a boolean indicating whether its argument is known to report that a file or directory already exists. It is satisfied by [ErrExist] as well as some syscall errors.

This function predates [errors.Is]. It only supports errors returned by the os package. New code should use errors.Is(err, fs.ErrExist).

Parameters

err: Error

Returns boolean

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

Generated using TypeDoc