diff options
author | Jon Robertson <jonrober@stanford.edu> | 2014-10-14 17:06:43 -0700 |
---|---|---|
committer | Jon Robertson <jonrober@stanford.edu> | 2014-10-14 17:17:55 -0700 |
commit | 80004a08e0580c25965ae37f602db1970157ddfb (patch) | |
tree | 0b836a6cea0225ecbd11d6e98d01c05f731e750d | |
parent | 1381f2e0d0bb2edfa4b52c9926c57b22379ee248 (diff) |
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
-rwxr-xr-x | server/wallet-backend | 9 |
1 files changed, 9 insertions, 0 deletions
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 <owner> is given, sets the owner of the object identified by <type> and <name> to <owner>. If <owner> is the empty string, clears the owner of the object. +=item rename <type> <name> <new-name> + +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 <type> <name> <acl> <id> Sets the ACL <acl>, which must be one of C<get>, C<store>, C<show>, |