Skip to content

nsuite v2.2.1


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")

Released under the Apache-2.0 License.