gulp-ssh icon indicating copy to clipboard operation
gulp-ssh copied to clipboard

gulpssh.dest: delete remote instead of skipping?

Open tcfunk opened this issue 7 years ago • 3 comments

What is your opinion on implementing remote file deletion instead of skipping empty/deleted files? I am currently trying using gulpssh.dest to synchronize my local directory with my server directory, which seems to work for everything but file deletion.

tcfunk avatar May 18 '17 20:05 tcfunk

try gulpSSH.shell('mv dest dest_bk') and then gulpssh.dest

zensh avatar May 19 '17 00:05 zensh

I need it to work with gulp-watch, though. So if the file watcher detects that a file is deleted, it is deleted on the destination server as well. Currently, this scenario causes lines 239-241 to trigger. My thoughts would be to run sftp.unlink here rather than skipping.

tcfunk avatar May 19 '17 04:05 tcfunk

@nekolab Do you have interesting on this issue?

zensh avatar May 19 '17 09:05 zensh