nsuite / isPathExists
Function: isPathExists()
isPathExists(
path):Promise<boolean>
Defined in: UtilsPath.ts:105
Checks if a given path exists.
Parameters
path
string
The path to check.
Returns
Promise<boolean>
A promise that resolves to true if the path exists, otherwise false.
Example
ts
import { isPathExists } from "nsuite";
const isExists = await isPathExists("path/to/file.txt")