The command filesystem.filesize is used to get the size, in bytes, of a file in the device memory.
- filename [string]
File name with extension.
- variablereturn [integer]
Variable that will store the return of the command.
In the example above, the file wallpaper_walkpb.bmp will be downloaded by the command downloadfile and the command filesystem.filesize will return the size in bytes.
As the return of the command filesystem.filesize is an integervariable, it must be converted to stringvariable to be displayed on the display by the command inttostring.