Skip to content

createFileWithDummy

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

Creates a file with the specified size in bytes.

Parameters

  • filePath::string: File or directory path
  • size::number
    Named
    : Size of the file to be created (Dummy data is filled as much as the given size)

Returns

Promise::void

Examples

javascript
await createFileWithDummy('/home/user/test.txt', 100000);
dart
await createFileWithDummy('/home/user/test.txt', size: 100000);

Released under the MIT License