How to select only a specific file from a directory in gulp?
The directory contains images in jpg format with random names. I need to use gulp to rename them by numbers (1.jpg, 2.jpg, etc.) in the order of their location in the folder, that is, first take the ones that are located above and go down to the bottom. How can this be done?
To place the code, please use CodePen or similar tool. Thanks you!