If FirstTime Then
MES.Initialize(Me, "MES")
Storage.Initialize(Me, "storage")
End If
' Get access to the SDCard
If Not(MES.HasPermission) Then
MsgboxAsync("This app requires access to all files, please enable the option", "Manage All Files")
Wait For Msgbox_Result(Res As Int)
MES.GetPermission
Wait For MES_StorageAvailable
End If
' Get access to the SDCard directory
Storage.SelectDir(True)
Wait For Storage_ExternalFolderAvailable
RootDir = Utils.Get_URI_Dir(File.GetText(File.DirInternal,"PersistantUri"))
Log("Using " & RootDir)