Titanium Community Questions & Answer Archive

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

Can I assume that Titanium.Filesystem.getResourcesDirectory is writable?

It's mentioned in the API docs that the directory Titanium.Filesystem.getApplicationDataDirectory will always be writable and that Titanium.Filesystem.getApplicationDirectory may not be, what is the case with Titanium.Filesystem.getResourcesDirectory?

Basically I'm trying to create a shared directory which contains the same data for each user on a machine. Is this possible and where should I write to?

— asked March 24th 2010 by Rowan Manning
  • desktop
  • filesystem
  • permissions
  • shared
  • writable
0 Comments

3 Answers

  • Accepted Answer

    No, unfortunately not. There is no cross-platform way to write data to a shared location. You may be able to determine a location where this is possible on Windows and OS X though. I'm fairly certain the only place that all users can write using the FHS (Filesystem Hierarchy Standard – which most Linux distributions use) is the /tmp directory.

    — answered March 24th 2010 by Martin Robinson
    permalink
    0 Comments
  • No, unfortunately not. There is no cross-platform way to write data to a shared location. You may be able to determine a location where this is possible on Windows and OS X though. I'm fairly certain the only place that all users can write using the FHS (Filesystem Hierarchy Standard – which most Linux distributions use) is the /tmp directory.

    — answered March 24th 2010 by Martin Robinson
    permalink
    0 Comments
  • Sorry for posting an answer as a response, but thanks. It's a shame!

    p.s. can you unlock commenting on the Q&A? and if so what reputation do you need?

    — answered March 24th 2010 by Rowan Manning
    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.