P
P
Prometheus2017-01-20 19:21:56
gulp.js
Prometheus, 2017-01-20 19:21:56

How to get the path to the processed file?

Greetings!
There are directories nested within each other, in each node of which files are located.
How to get the path for each file in gallp?
Here is a simple design. How can I get thisPath for each of the files?

return gulp.src("public/src/**/*.txt")
    .pipe( myFunction( thisPath ) )
    .pipe(gulp.dest("dist"));

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question