Oops! Error!:
internal_files_path = app.directory
On Android, these files are deleted when the app is updated!
I have changed it to the following. But I am not 100% sure if this preserves the files in internal_files_path when the app is updated on iOS?:
app = App.get_running_app()
print("1. app.directory = ", app.directory)
print("2. app.user_data_dir = ", app.user_data_dir)
global internal_files_path, shared_files_path, app_dir_readonly
app_dir_readonly = app.directory
print("4. platform = ", platform)
# The following changed July 5th, 2021:
if platform == 'ios':
print("3. storagepath.get_home_dir() = ", storagepath.get_home_dir())
internal_files_path = storagepath.get_home_dir() + 'Library/'
print("5. storagepath.get_home_dir()/Library/ = ", internal_files_path)
shared_files_path = app.user_data_dir
else: # == Android for any practical purposes...
internal_files_path = app.user_data_dir # Used for 'cur-ref-point'-files and other internal files.
shared_files_path = app.user_data_dir
On Wednesday, 7 April 2021 at 21:21:39 UTC+2 Henrik R. wrote: