Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 669

Android Deployment • Re: Delete folder and all its content on Android

$
0
0
Hi Trevix,

1. you can use -> specialfolderpath("resources") on all platforms: Mac, Win, iOS and Android!
specialfolderpath("resources") = specialfolderpath("engine") on mobile!

So no need to differ in your script(s):

CODE:

...   #    switch the platform   #          case "MacOS"   #               put specialFolderPath("resources") & "/" & tFolderName  into sMainDirectory --inside the app, where to save the zip file   #               break   #          case "iPhone"   #          case "Android"   #               put specialFolderPath("engine") & "/" & tFolderName into sMainDirectory --inside the app, where to save the zip file   #               break   #     end switchput specialFolderPath("engine") & "/" & tFolderName into sMainDirectory...
2. We do NOT have write permissions (and deleting means WRITING) inside of the the app folder on the mobile platform,
so any attempt to delete a file or folder in -> specialfolderpath("resources") will FAIL and the script(s) will silently stop at this point.
We ONLY have write permission in -> specialfolderpath("documents")


Best

Klaus

Statistics: Posted by Klaus — Tue Sep 24, 2024 6:44 pm



Viewing all articles
Browse latest Browse all 669

Trending Articles