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):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
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...
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