Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetFileSize example Python #232

Open
Al4He6 opened this issue Jul 24, 2024 · 0 comments
Open

GetFileSize example Python #232

Al4He6 opened this issue Jul 24, 2024 · 0 comments

Comments

@Al4He6
Copy link

Al4He6 commented Jul 24, 2024

app.Alert(size / 1024 + " kB")

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")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant