hparra / gulp-rename

Rename files easily
MIT License
692 stars 73 forks source link

gulp-rename doesn't remove the original file #55

Closed joaumg closed 9 years ago

joaumg commented 9 years ago

Hello, I'm using your plugin and I found a odd behavior.

I create a hello.txt file, tell gulp-rename to rename it to _hello.txt, and when I do a linux ls, the original file is still there...

joaumg :: ~ » touch hello.txt
joaumg :: ~ » cat gulpfile.js
var gulp = require( 'gulp' );
var rename = require( 'gulp-rename' );

gulp.task( 'default', function () {
    gulp.src( "hello.txt" )
        .pipe( rename( "_hello.txt" ) )
        .pipe( gulp.dest( "." ) );
});
joaumg :: ~ » gulp
joaumg :: ~ » ls | grep hello
_hello.txt
hello.txt
joaumg :: ~ » 

Is this the default behavior, a bug or I'm missing something ?

shinnn commented 9 years ago

https://github.com/hparra/gulp-rename/issues/53#issuecomment-127289889