Skip to content

isFileExists

Requires a Node.js runtime ('qsu/node')

If a file or directory exists at the specified path, it returns true.

Parameters

  • filePath::string

Returns

Promise:boolean

Examples

javascript
await isFileExists('text.txt'); // true
await isFileExists('not-exist.txt'); // false

Released under the MIT License