cordova-externalstoragepath-plugin
v1.0.4
Published
A plugin for retrieving your external storage path. Works with Android 7.
Downloads
16
Readme
Cordova External Storage Path Plugin
This plugin makes it possible to retrieve the path to your sdcard.
On Android 6+ the path of the sdcard is different for every sdcard,
because the path is like this:/storage/XXXX-XXXX where XXXX-XXXX is the volume id of the sdcard.
Cordova does not provide functionality to retrieve a path to your sdcard, which is why I wrote this plugin.
Installing
cordova plugin add cordova-externalstoragepath-pluginUsage
CordovaExternalStoragePlugin.getExternalStorageDirs(function(sdCardDirs){
// sdCardDirs contains an array of possible sdCard locations ["XXXX-XXXX"].
console.log(sdCardDirs);
});