Reputation: 163
I'm developing a gallery like app that allows users to select image/s from their phone and send to a kiosk. When the application loads it basically scans the whole devices for folders containing images and puts those folders into an album object. By Default iv set the scan to ignore all hidden directories (.directoryName), however iv noticed that the application also scan all the system directories like Android and other application folders; which significantly slows down the process.
Is there a way to ignore certain folders by a flag? or should I just set the scan manually to ignore the "android" directory and put up with some silly results? My other option is to only scan common known spots - which I'm not really keen on as I don't want to limit users options.
Any advice would be great! thanks.
Upvotes: 1
Views: 57
Reputation: 65938
You can do that using native file plugin. It has so many options to select/deselect
folder paths in the device.
ionic cordova plugin add cordova-plugin-file
npm install --save @ionic-native/file
Upvotes: 1