Skip to content

createFile JavaScript

Create a file of empty data. If the same file already exists, it is ignored.

Parameters

  • filePath::string: File or directory path

Returns

Promise::void

Examples

javascript
await createFile('/home/user/test.txt');

Released under the MIT License