It would be pretty useful if you can just rename a...
# dev
i
It would be pretty useful if you can just rename a directory in lakefs from the UI? 🙂 especially if you upload to the wrong directory often ^^
y
Hey, lakefs does not have a true rename operation on a prefix, much like s3 (or any other storage I'm aware of). To rename a prefix, one must
mv
the old prefix to a new one, and then
rm
the old one. This can be done via lakectl with
lakectl fs mv --recursive
and then
lakectl fs rm
.
I stand corrected, sorry!
Could you please elaborate on why do you want this operation specifically in the ui, as opposed to using lakectl?
b
Currently 'lakectl fs' does not support mv or cp, in the context of remote to remote. The above will work probably if you use 'aws s3' cli to copy the data in lakefs and delete. The current version will perform a copy on lakefs be we hope to optimize some of the calls to be no-copy operation.
i
Hmm, yeah I'm using now the s3 API to do a rename
From the UI is simply super convenient if you want to do it for thousands of docs
b
Suggest to open an issue and describe this scenario.
It may help us us to better prioritize this request and maybe others in the community too.
👍 2