Delete content of remote directory before copy
ThomasRutzer opened this issue · comments
Thomas Rutzer commented
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.
Gary Großgarten commented
@ThomasRutzer This could be helpful, thanks for your PR. I'll take a look soon.
Thomas Rutzer commented
@garygrossgarten Do you have a test environment for your action?