Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Reading files from FS

I made an app which writes files and sends them to the server. Since I noticed that sometimes, files don't get sent, I decided to have them backed up by saving them to the watch's memory.

I'm now trying to make a different app that reads the saved file but it's not working then I noticed the description on Filesystem SDK.

" File system operations are relative to your app's private data directory, /private/data/. For example the path file.text refers to /private/data/file.text. This private directory is also where files transferred using File Transfer are held once received by your application. This is the only location your app can write to; all locations outside of /private/data/ are read-only."


The way I see it, only the creator app of the file can read it too and a different app will have it's own /private/data folder.

Is there a way to workaround it? Or am I missing something?

The only workaround I have so far is to add another function to my app that will read and send all data to the server at once.

Thanks in advance!

Best Answer
0 Votes
1 REPLY 1

Hi @ac_devel  - have a look at app cluster storage  it may be useful.

Author | ch, passion for improvement.

Best Answer
0 Votes