From 80004a08e0580c25965ae37f602db1970157ddfb Mon Sep 17 00:00:00 2001 From: Jon Robertson Date: Tue, 14 Oct 2014 17:06:43 -0700 Subject: Added rename support for file objects File objects now support a rename command, which will rename the object and move the file to the right spot in the file store under its new name. Change-Id: I10ea2b8012586d69f0894905cfba54a738f3e418 --- server/wallet-backend | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'server') diff --git a/server/wallet-backend b/server/wallet-backend index a2e6e6f..8dfc952 100755 --- a/server/wallet-backend +++ b/server/wallet-backend @@ -287,6 +287,9 @@ sub command { failure ($server->error, @_); } } + } elsif ($command eq 'rename') { + check_args (3, 3, [], @args); + $server->rename (@args) or failure ($server->error, @_); } elsif ($command eq 'setacl') { check_args (4, 4, [], @args); $server->acl (@args) or failure ($server->error, @_); @@ -552,6 +555,12 @@ If is given, sets the owner of the object identified by and to . If is the empty string, clears the owner of the object. +=item rename + +Renames an existing object. This currently only supports file objects, +where it renames the object itself, then the name and location of the +object in the file store. + =item setacl Sets the ACL , which must be one of C, C, C, -- cgit v1.2.3