apache / apache/cordova-plugin-file
Listdir takes so much time if directory has data more then 3k entries.
- Dominant language
- JavaScript
- Stars
- 744
- Forks
- 754
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 1
Description
# Bug Report
## Problem
### What is expected to happen?
### What does actually happen?
## Information
I made a local gallery in my app and everything works but one directory whatsapp images have total 154000 images inside it and listdir takes 1 minutes or more to give me all entries array ..
### Command or Code
### Environment, Platform, Device
### Version information
## Checklist
- [yes ] I searched for existing GitHub issues
- [yes ] I updated all Cordova tooling to most recent version
- [yes ] I included all the necessary information above
Contributor guide
Research direction
Start by reproducing the listdir call against a directory containing roughly 154,000 images and record the time and platform details. Inspect the plugin's listdir entry point and determine whether the reported delay can be reduced; done means the behavior is measured with a clear reproduction and the issue's expected performance is addressed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100