Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript remove files name starts with

var glob = require("glob")

// options is optional
glob("**/profile-photo-*.png", options, function (er, files) {
    for (const file of files) {
         // remove file
    }
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #remove #files #starts
ADD COMMENT
Topic
Name
4+8 =