Closed alexander-akait closed 9 years ago
Is there any use case?
@shinnn i use multimatch in function rename. From the time it can be changed logic parse path. Not too elegant to do so.
var originalPath = path.join(filePath.dirname, filePath.basename + filePath.extname);
So I think that this possibility should be implemented to hide the details of logic, and easy to get the full path
In this case you don't need to use gulp-rename. You can use through2 directly.
.pipe(through2.obj(function(file, enc, cb) {
var originalPath = file.path;
// your awesome process
cb(null, file);
}))
@shinnn why? i need rename file and gulp-rename perfect for me
Add function toString to object in function. toString must return original path.