]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blobdiff - src/allmydata/scripts/tahoe_mkdir.py
webapi: handle format=, remove mutable-type=
[tahoe-lafs/tahoe-lafs.git] / src / allmydata / scripts / tahoe_mkdir.py
index 50ed0672a2291ea86e5183b7326e77df1f1cfadc..cc0374bf7acd84312f8a58724c0a4277497a54e3 100644 (file)
@@ -23,7 +23,7 @@ def mkdir(options):
         # create a new unlinked directory
         url = nodeurl + "uri?t=mkdir"
         if options["mutable-type"]:
-            url += "&mutable-type=%s" % urllib.quote(options['mutable-type'])
+            url += "&format=%s" % urllib.quote(options['mutable-type'])
         resp = do_http("POST", url)
         rc = check_http_error(resp, stderr)
         if rc:
@@ -40,7 +40,7 @@ def mkdir(options):
     url = nodeurl + "uri/%s/%s?t=mkdir" % (urllib.quote(rootcap),
                                            urllib.quote(path))
     if options['mutable-type']:
-        url += "&mutable-type=%s" % urllib.quote(options['mutable-type'])
+        url += "&format=%s" % urllib.quote(options['mutable-type'])
 
     resp = do_http("POST", url)
     check_http_error(resp, stderr)