Back
GetFileSize
Hello World
GetFileSize returns the size of a file or folder in bytes.
app.GetFileSize(
file
) →
Number:
float
Example - Show /sdcard/ folder size
function
OnStart
(
)
{
var
size
=
app
.
GetFileSize
(
"/sdcard/"
)
;
app
.
Alert
(
size
/
1024
+
" kB"
)
;
}
Copy All
Run
String:
path to file (
“/absolute/...”
or
“relative/...”
)