Created
March 9, 2014 19:10
-
-
Save jasonrhodes/9452851 to your computer and use it in GitHub Desktop.
Trying to figure out how to interact with files in a gulp glob.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var through = require("through"); | |
var fs = require("fs"); | |
function write(file) { | |
console.log(file); | |
console.log(file.toString()); | |
} | |
gulp.task("move", function () { | |
return gulp.src("./**") | |
.pipe(through(write)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$ gulp move
outputs something like this on the cli:and so on for all the files contained in the glob. Not sure how to interact with this File object??