Enhancement request for add support for listing files with filter and option to get number of files in a folder
- Dominant language
- JavaScript
- Stars
- 13
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
The files.list([filePath]) API is described as `Lists files in a remote folder. If called on a file returns the file info if the file exists. If the file or folder does not exist returns an empty array.`
Requesting following enhancement
1. An option to get the number of files in the path - Currently we are listing the files and counting them. This consumes memory.
2. In case in a path there are different types/pattern of file Example - `docx, xlsx and/or a01.jpg, a02.jpg, b01.jpg, b02.jpg`. If there is a provision to selective list with file pattern would be very helpful. Example *.docx or a*.jpg
### Expected Behaviour
### Actual Behaviour
### Reproduce Scenario (including but not limited to)
#### Steps to Reproduce
#### Platform and Version
#### Sample Code that illustrates the problem
#### Logs taken while reproducing problem
Contributor guide
Research direction
Start by locating the files.list([filePath]) API and reviewing how it currently lists and returns remote files. Clarify the API design for a file-count option and pattern filtering, then define verification for counting without materializing the full listing and matching patterns such as *.docx or a*.jpg.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api, cloud
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100