Skip to content

getFileSize

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

Calculates the size of the file at the given path.

Parameters

  • filePath::string

Returns

string

Examples

javascript
getFileSize('/home/user/test.txt'); // 300
dart

getFileSize('/home/user/test.txt'); // 300

Released under the MIT License