Functionalities
Other
$fileSize
Returns the size of the file in bytes(b). Define the file path. Path always starts with `./` defined as **home**, regardless if a command handler is used. (Generally, 1,000 bytes = 1 Kilobyte)

FUNCTION USAGE

  • $fileSize[./path]

Properties:

./path - Supply the file path. The file it lands on is the file it will read.
Can be used to return the size of any file if the file path is correct.
Example 1: Returns the size of the test.js file inside the main folder.
1
bot.Command({
2
name: "test",
3
code: `
4
$fileSize[./commands/main/test.js]
5
`
6
})
Copied!
Example 2: Returns the size of the test.js file inside the utility folder.
1
bot.Command({
2
name: "test",
3
code: `
4
$fileSize[./commands/utility/test.js]
5
`
6
})
Copied!
Last modified 5mo ago
Copy link
Contents
Properties: