I have image files with read-only attribute set in source folder. I need to copy them to destination folder in most cases several times in gulpfile.js.
read-only
rimraf can be used to avoid issues with TFS permissions (by deleting destination files before copying files)
var rimraf = require("rimraf"); gulp.task("images_clean", function (cb) { rimraf(imagesDest, cb); });