How to select only a specific file from a directory in gulp?

  • 0
    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?
    At first I tried to somehow take only the first file in the pack - it did not work. Then I tried to work with gulp.src () as with an array - also zero. So I never came to anything.
    JavaScript Conner Miles, Nov 26, 2020

  • 0 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!