jerrysu / gulp-rsync

Gulp plugin for deploying files via rsync
119 stars 51 forks source link

Clean doesn't seem to be working #25

Closed Jakobud closed 9 years ago

Jakobud commented 9 years ago

I used the following:

gulp.src('build/**')
  .pipe(rsync({
    hostname: 'myremotehost.com',
    destination: '/tmp',
    times: true,
    recursive: true,
    clean: true
  }));

So to test, I run it and it successfully copies over everything in my build directory to the proper place on the remote server.

Next, in order to test that the clean option is working, I go into my build directory and delete one of the subdirectories. I then run my task again. I check on the remote server and the subdirectory that I deleted is still in the target directory. Shouldn't it have been deleted with clean?

Am I misunderstanding something about how clean works?

Jakobud commented 9 years ago

Well it's working now just fine for some reason. Not sure what I did different. Options are the same. Oh well.

rctneil commented 8 years ago

@Jakobud Hey, i'm having exactly the same issue as this. Any chance you know what you did to resolve it?

Jakobud commented 8 years ago

I have no idea. It just worked all the sudden...