Skip to content
Permalink
Browse files
CB-10411 Error in file.spec.129 of cordova-plugin-file
Check if external storage is available
  • Loading branch information
daserge committed Feb 11, 2016
1 parent 89cc2d2 commit f231e7c001b5fb79b96bbad71d465d79f6d25855
Showing 1 changed file with 5 additions and 1 deletion.
@@ -3316,7 +3316,11 @@ exports.defineAutoTests = function () {
it("file.spec.129 cordova.file.*Directory are set", function () {
var expectedPaths = ['applicationDirectory', 'applicationStorageDirectory', 'dataDirectory', 'cacheDirectory'];
if (cordova.platformId == 'android' || cordova.platformId == 'amazon-fireos') {
expectedPaths.push('externalApplicationStorageDirectory', 'externalRootDirectory', 'externalCacheDirectory', 'externalDataDirectory');
if (cordova.file.externalApplicationStorageDirectory !== null) {
// https://issues.apache.org/jira/browse/CB-10411
// If external storage can't be mounted, the cordova.file.external* properties are null.
expectedPaths.push('externalApplicationStorageDirectory', 'externalRootDirectory', 'externalCacheDirectory', 'externalDataDirectory');
}
} else if (cordova.platformId == 'blackberry10') {
expectedPaths.push('externalRootDirectory', 'sharedDirectory');
} else if (cordova.platformId == 'ios') {

0 comments on commit f231e7c

Please sign in to comment.