vscode-rsync icon indicating copy to clipboard operation
vscode-rsync copied to clipboard

用起来有点危险(It can be a bit risky to use.)

Open CMinHong opened this issue 1 year ago • 1 comments

有点危险,我开启了保存时同步,和同步时删除,在设置中填写远程路径:/home/user/path的时候,还没填完,到/home/user/的时候,开始了自动同步,将我当前工作区的文件(一个测试目录,也就是空目录),同步到了/home/user/下……,也就是说,它删除了我用户目录下的所有文件。谨慎使用。

trans: It's quite risky. I enabled the option for syncing upon saving and deleting during synchronization. While filling in the remote path in the settings as "/home/user/path," before I could finish, when I reached "/home/user/," automatic synchronization started. It synced the files in my current workspace (which was a test directory, meaning an empty directory) to "/home/user/." In other words, it deleted all the files in my user directory. Please use it with caution.

CMinHong avatar Jun 25 '23 06:06 CMinHong

I wonder how this could happen, since AFAIK rsync doesn't delete files unless the --delete option is given, which it isn't by default.

I'm worried about an "it deleted all of my files!" ticket getting no response. This is a very dead project that hasn't seen a commit in half a decade, it should probably be removed from the extension library...

zewt avatar Mar 06 '24 10:03 zewt