O'Reilly logo

PhoneGap 3.x Mobile Application Development HOTSHOT by Kerri Shotts

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Covering YASMF's FileManager file

YASMF's FileManager file simply wraps the File API using Promises (and Q.js specifically). It simplifies some of the API calls as well by maintaining the idea of a current working directory (much like your command line or terminal does). Although nothing says you have to use YASMF in your code, you might want to consider at least using the FileManager file. You can get a script that has minimal dependencies from YASMF's site.

Getting ready

If you want to view the code behind YASMF's FileManager file, visit https://github.com/photokandyStudios/YASMF-Next/blob/master/lib/yasmf/util/fileManager.js. You should be able to notice the similarities between the way in which we wrapped the File API in the previous section ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required