Unable to read file from mounted sd card directory through $cordovaFile

i have a code similar to this

$cordovaFile.readAsText(cordova.file.externalRootDirectory, "file.txt")
  .then(function (success) {

  }, function (error) {

  });

which according to offical docs should read file from mounted sd card but this is reading file from internal storage