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