DroidScript / Docs

DroidScript Documentation
Apache License 2.0
85 stars 30 forks source link

GetFileSize example Python #232

Open Al4He6 opened 3 months ago

Al4He6 commented 3 months ago

https://github.com/DroidScript/Docs/blob/63145db940b0ace9ef88855f7e3a4ec9c6c4576c/files/markup/en/app/GetFileSize.js#L36

Uses + to concatenate number and string, using str works from native import app

def OnStart(): size = app.GetFileSize("/sdcard/") app.Alert(str(size / 1024 )+ " kB")