1.8.1 Bug:Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory,fichier) directory problem

You must Login before you can answer or comment on any questions.

files = "Director/images.txt";
f=Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory,files);
f.write(this.responseData);
when i compile with 1.5 it's work well the file is save in the Ressources/Directory/ but when i tried with 1.8.0.1 or 1.8 it's didnt work. Any Idea ?? thanks

2 Answers

if you're developing for android, put './' in front of the file path:

files = "./Director/images.txt";
also, is it Director or Directory (note 'y' at the end of the folder name)?

Your Answer

Think you can help? Login to answer this question!