scp-action icon indicating copy to clipboard operation
scp-action copied to clipboard

Don' t remove the target folder with option "rm", empty it instead

Open NobeKanai opened this issue 4 years ago • 3 comments

I don't think to remove the target folder and then recreate it is a good idea, consider empty the sub-files and sub-folders in the target folder.

I think this could avoid some problems like docker's mounting

NobeKanai avatar Nov 28 '20 05:11 NobeKanai

Same here. I expect this behavior rsync -aczvAXHS --delete , not rm the whole dir

pascalandy avatar Jan 20 '21 17:01 pascalandy

up

TheAlexGo avatar May 07 '23 01:05 TheAlexGo

I support this. After deleting/creating of Docker volume folder I have to restart Nginx container every time, unusable. I need to use ssh action to empty volume folder first, is there more elegant solution available? If I just use overwrite option I can accumulate build files with random names.

nemanjam avatar Jan 02 '24 12:01 nemanjam