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?
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.
-
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.
-
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?