GetFileSize returns the size of a file or folder in bytes.
Example - Show /sdcard/ folder size
function OnStart()
{
var size = app.GetFileSize( "/sdcard/" );
app.Alert( size / 1024 + " kB" );
}
from native import app
def OnStart():
size = app.GetFileSize("/sdcard/")
app.Alert(size / 1024 + " kB")