garygrossgarten / github-action-scp

⬆️ Copy a folder to a remote server using SSH

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Delete content of remote directory before copy

ThomasRutzer opened this issue · comments

Hey, would it make sense to add a feature to clean the remote directory before copy?
Could be an optional parameter.

Could be a simple rm -rf [remote-folder-name] and node-ssh already provides execCommand for that.

I've tried it and started PR #12 . Maybe you have a look and test it.

@ThomasRutzer This could be helpful, thanks for your PR. I'll take a look soon.

@garygrossgarten Do you have a test environment for your action?