I am programming in qml for a mobile client. I want to check if a particular folder exists on the mobile device. If not, I want to create it. I am using qml, so solutions can be in qml or JavaScript.
(Note: when I say "JavaScript", people say "use php,ajax etc." but I can only use JavaScript and qml on my mobile platform)
Do it in Qt (like @Stu-Mackellar already said).
Access Qt methods like this:
http://doc.qt.nokia.com/qt-maemo-4.7/qtbinding.html#calling-c-methods-from-qml
and do the Qt part like described here:
Checking if a folder exists (and creating folders) in Qt, C++
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.