Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Filesystem write fails on iPhone device

I used Titanium mobile sdk 1.4.1.1 and KitchenSink to test filesystem api, but it seems Filesystem's write API does not work on device which can work on emulator.

On device, when i open a file by Titanium.Filesystem.getFile, it is always with the 'readonly' property to true and can not write data into file. I test with KitchenSink, it seems failed too.

— asked October 22nd 2010 by ge bing
  • filesystem
  • iphone
  • write
0 Comments

1 Answer

  • On the iOs device the resourcesDirectory is readonly. Try to write to applicationDataDirectory

    — answered October 22nd 2010 by Dan Tamas
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.