Pds Ink
Pds Ink

Reputation: 765

why $cordovaFile don't create a folder?

i'm trying to create a folder with cordovaFile ngCordova, but it always call the error callback, some advice?

$cordovaFile.createDir(cordova.file.applicationDirectory+"/www/pdf/","attach", true)
          .then(function (success) {
            console.log('folder created');
          }, function (error) {
            console.log('folder not created');
          });

Upvotes: 0

Views: 29

Answers (0)

Related Questions