Hi guys,
Is there any way I can have a access to files loaded into /www/ directory using UniFlash application ? Does the FS api can handle this ?
... sl_FsOpen("/www/mypage.html", ... ) ... sl_FsRead(...);
BR,
Damian K.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi guys,
Is there any way I can have a access to files loaded into /www/ directory using UniFlash application ? Does the FS api can handle this ?
... sl_FsOpen("/www/mypage.html", ... ) ... sl_FsRead(...);
BR,
Damian K.
Hi Damian,
My understanding is that the file system is just a flat file system, so there are no directories etc. so the www/mypage.html is considered a file name and not a directory with files. So with this in mind, you should be able to access, unless the firmware has something in place to stop such access.
Have you tried to access these pages? I find it is best to just try things out and see what happens. If so, and you are having issues, perhaps you need to do something with the / (forward slash).
Anyway, I'll leave it to others to fill in the gaps or correct my understanding.
Glenn.
Thanks Glenn.
I will try and back here with the results. I decided to post a message because it was too late for coding :P
Hi Damian,
Glenn's understanding of the file system usage is correct. :-)
Thanks,
Alon