curve icon indicating copy to clipboard operation
curve copied to clipboard

[tools-v2]: curve bs need a command for files in recycle bin to restore

Open zhengweizhu opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? (你需要的功能是否与某个问题有关?) By means of tools-v2 cli we can delete a file by command "curve bs delete file --path /test1 --force false", and eventually the file will be just renamed a file in dir /RecycleBin. By the way, the flag --force is not allowed to be true due to the limitation of curvebs mds. Also the curve cli has a subcommand clean-recycle to do clean job in /RecycleBin. The problem is that the curve cli seems not to support to restore the files in /RecycleBin, which can't explain the meaning of existing of recycle bin.

Describe the solution you'd like (描述你期望的解决方法) Add a restore subcommand like this "curve bs restore --path /RecycleBin/test1-4".

Describe alternatives you've considered (描述你想到的折衷方案)

Additional context/screenshots (更多上下文/截图)

zhengweizhu avatar Nov 17 '23 08:11 zhengweizhu

BTW I am glad to fix this issue if necessary.

zhengweizhu avatar Nov 17 '23 08:11 zhengweizhu

welcome to fix it

montaguelhz avatar Nov 21 '23 01:11 montaguelhz