Find files using wildcards or regular expressions


#1

I am using the Cordova ‘File’ plugin along with the ngCordova ‘File’ AngularJS wrapper. I’m trying to use a wildcard to find all matching files in a given directory. Below is a sample code:

$cordovaFile.checkFile(path, '*.csv').then(function success(obj) {
  // do something
}, function error(err) {
  // something else
});

Performing this I get the ‘NOT_FOUND_ERR’, Is it at all possible to do something like this?