As devices may offer us a lot of storage space that we can potentially use, we can make sure that we have the ability to traverse the filesystem to ascertain the structure of the storage available.
In this recipe, we will build an application that will read the contents of a directory from the device's root filesystem, and display it in a list format:
showdirectoryby running this line:
phonegap create showdirectory com.myapp.showdirectory showdirectory
cordova platform add ios cordova platform add android
fileplugin by running the following line:
phonegap plugin add org.apache.cordova.file ...