Command filesystem.filesize

The command filesystem.filesize is used to get the size, in bytes, of a file in the device memory.

Parameters

  1. filename [string]
    File name with extension.
  2. variablereturn [integer]
    Variable that will store the return of the command.

Example


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.