Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gulpssh.dest: delete remote instead of skipping? #61

Open
tcfunk opened this issue May 18, 2017 · 3 comments
Open

gulpssh.dest: delete remote instead of skipping? #61

tcfunk opened this issue May 18, 2017 · 3 comments

Comments

@tcfunk
Copy link

tcfunk commented May 18, 2017

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 tcfunk closed this as completed May 18, 2017
@tcfunk tcfunk reopened this May 18, 2017
@zensh
Copy link
Collaborator

zensh commented May 19, 2017

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

@tcfunk
Copy link
Author

tcfunk commented May 19, 2017

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.

@zensh
Copy link
Collaborator

zensh commented May 19, 2017

@nekolab Do you have interesting on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants