uplink icon indicating copy to clipboard operation
uplink copied to clipboard

uplink mv cannot rename a bucket

Open AlexeyALeonov opened this issue 2 years ago • 3 comments

Current

$ uplink ls
BKT 2022-03-17 23:29:16 video

$ uplink mv sj://video sj://audio
destination is a directory and cannot find base name for source "sj://video/"
        main.(*cmdMv).Execute:108
        main.(*external).Wrap:123
        github.com/zeebo/clingy.(*Environment).dispatchDesc:126
        github.com/zeebo/clingy.(*Environment).dispatch:53
        github.com/zeebo/clingy.Environment.Run:34
        main.main:25
        runtime.main:255

Expected:

$ uplink mv sj://video sj://audio
$ uplink ls
BKT 2022-03-17 23:29:16 audio

AlexeyALeonov avatar Mar 17 '22 19:03 AlexeyALeonov

@AlexeyALeonov could you try uplink mv sj://video sj://audio --recursive or uplink mv sj://video/ sj://audio/ --recursive? If it will work we may just need to improve messaging only.

mniewrzal avatar Mar 18 '22 09:03 mniewrzal

It cannot rename a bucket. What you suggest requires to create a destination bucket and this is would be move of objects from one bucket to another.

AlexeyALeonov avatar Mar 22 '22 17:03 AlexeyALeonov

Now i understand, thanks. We never had functionality to rename bucket and i don't think we will have in near future. ATM we may just return message about not supporting this.

mniewrzal avatar Mar 22 '22 18:03 mniewrzal