{"action":"closed","issue":{"url":"https://api.github.com/repos/driftyco/ng-cordova/issues/792","labels_url":"https://api.github.com/repos/driftyco/ng-cordova/issues/792/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ng-cordova/issues/792/comments","events_url":"https://api.github.com/repos/driftyco/ng-cordova/issues/792/events","html_url":"https://github.com/driftyco/ng-cordova/issues/792","id":75596104,"number":792,"title":"$cordovaFile.checkDir says folder does not exist but $cordovaFile.createDir says folder already exists","user":{"login":"jonnysmith1981","id":8254912,"avatar_url":"https://avatars.githubusercontent.com/u/8254912?v=3","gravatar_id":"","url":"https://api.github.com/users/jonnysmith1981","html_url":"https://github.com/jonnysmith1981","followers_url":"https://api.github.com/users/jonnysmith1981/followers","following_url":"https://api.github.com/users/jonnysmith1981/following{/other_user}","gists_url":"https://api.github.com/users/jonnysmith1981/gists{/gist_id}","starred_url":"https://api.github.com/users/jonnysmith1981/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonnysmith1981/subscriptions","organizations_url":"https://api.github.com/users/jonnysmith1981/orgs","repos_url":"https://api.github.com/users/jonnysmith1981/repos","events_url":"https://api.github.com/users/jonnysmith1981/events{/privacy}","received_events_url":"https://api.github.com/users/jonnysmith1981/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-12T13:09:34Z","updated_at":"2015-05-13T15:48:56Z","closed_at":"2015-05-13T15:48:56Z","body":"I am trying to work with the ngCordova File plugin as documented here: http://ngcordova.com/docs/plugins/file/, but am getting strange behaviour.\r\n\r\nI am trying to create a folder if it does not already exist. I am testing for its existence using:\r\n\r\n$cordovaFile.checkDir(cordova.file.dataDirectory, 'inbound')\r\n\r\nNow this returns NOT_FOUND_ERR so i try to create the folder subsequently by calling:\r\n\r\n$cordovaFile.createDir(cordova.file.dataDirectory, 'inbound', false);\r\n\r\nBut this then returns PATH_EXISTS_ERR\r\n\r\nWhy would checkDir tell me it does not exist, but then createDir tell me it DOES exist?\r\n\r\nNOTE: This is using an Android device."}}