apache / cordova-plugin-file

Apache Cordova File Plugin
https://cordova.apache.org/
Apache License 2.0
741 stars 756 forks source link

Wildcard #567

Closed Covarians closed 1 year ago

Covarians commented 1 year ago

Is there a way to use filename with wild card in the getFile function ?

Thanks for your help. FG

breautek commented 1 year ago

No, the file plugin nor the underlying native API doesn't understand wildcard/file expansion operations.

If you have a glob API, you could list the files and apply the glob against the file API. Recursive scanning on mobile filesystems tends to be really slow however, and you'll need to explicitly list each subdirectory manually if you want a recursive search.

Closing because this kind of feature would be out of scope of this plugin.