[codenameone-discussions] Re: Suggestion about changing the location of cn1storage folder

2021-06-09 Thread Shai Almog
It's possible there's some code somewhere that does that but I'm unaware of this. Since this literally replaces the order of the roots it should be OK. To be fair this isn't a use case we thought of when we built this behavior so I might be missing something. This is the code that handles

[codenameone-discussions] Re: Suggestion about changing the location of cn1storage folder

2021-06-09 Thread 'P5music' via CodenameOne Discussions
Do you know if ios.newStorageLocation=false is overidden in some cases? For example for some iOS versions. I am testing with iOS 12, along with some other versions, and it seems that for iOS 12 the cn1storage folder is created even with that build hint. Does it make sense to you? Is it possible?

[codenameone-discussions] Re: Suggestion about changing the location of cn1storage folder

2021-06-08 Thread 'P5music' via CodenameOne Discussions
So, I used the ios.newStorageLocation=false hint and String documentsRoot=FileSystemStorage.getInstance().getRoots()[0]; yields a different path of course, I had to change the code for retrieving the "Application Support" and the "Documents" folders path. It seems to work. Regards Il giorno

[codenameone-discussions] Re: Suggestion about changing the location of cn1storage folder

2021-06-05 Thread Shai Almog
We place the HTML files from the html directory there, if you pass a file to the app it's generally copied into there. We don't write there normally though. On Saturday, June 5, 2021 at 10:13:28 AM UTC+3 P5music wrote: > (5) > So could the Documents folder passed random content according to

[codenameone-discussions] Re: Suggestion about changing the location of cn1storage folder

2021-06-05 Thread 'P5music' via CodenameOne Discussions
(5) So could the Documents folder passed random content according to what the user does with my app? so the user can see files not moved there explicitly by him/her? Is that folder used as the inbox folder for my app and other things as a matter of fact? Regards Il giorno sabato 5 giugno 2021

[codenameone-discussions] Re: Suggestion about changing the location of cn1storage folder

2021-06-05 Thread Shai Almog
You might be able to move storage by setting ios.newStorageLocation=false which will place stoage under the caches directory. Notice that it might have adverse effects on some things but I doubt it will impact you much. 1. It might be recreated since things like Preferences use storage and we

[codenameone-discussions] Re: Suggestion about changing the location of cn1storage folder

2021-06-04 Thread 'P5music' via CodenameOne Discussions
Ok, I meant for new projects or for developers who are aware of it, before publishing the app, like me. However, I would like to understand if some other solution is available for my project. My app does not use the Storage at all. It just has two data files in the Library/Application Support

[codenameone-discussions] Re: Suggestion about changing the location of cn1storage folder

2021-06-03 Thread Shai Almog
We can't change something dynamically as it will break compatibility. You can submit an RFE or pull request which provides the different storage location option as an API or configuration. On Thursday, June 3, 2021 at 4:10:05 PM UTC+3 P5music wrote: > Can the cn1storage folder be under the