]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blobdiff - src/allmydata/scripts/tahoe_mkdir.py
add --format= to 'tahoe put'/'mkdir', remove --mutable-type. Closes #1561
[tahoe-lafs/tahoe-lafs.git] / src / allmydata / scripts / tahoe_mkdir.py
index cc0374bf7acd84312f8a58724c0a4277497a54e3..9820ada76fe92d17504192942ac17225ac898692 100644 (file)
@@ -22,8 +22,8 @@ def mkdir(options):
     if not where or not path:
         # create a new unlinked directory
         url = nodeurl + "uri?t=mkdir"
-        if options["mutable-type"]:
-            url += "&format=%s" % urllib.quote(options['mutable-type'])
+        if options["format"]:
+            url += "&format=%s" % urllib.quote(options['format'])
         resp = do_http("POST", url)
         rc = check_http_error(resp, stderr)
         if rc:
@@ -39,8 +39,8 @@ def mkdir(options):
     # path must be "/".join([s.encode("utf-8") for s in segments])
     url = nodeurl + "uri/%s/%s?t=mkdir" % (urllib.quote(rootcap),
                                            urllib.quote(path))
-    if options['mutable-type']:
-        url += "&format=%s" % urllib.quote(options['mutable-type'])
+    if options['format']:
+        url += "&format=%s" % urllib.quote(options['format'])
 
     resp = do_http("POST", url)
     check_http_error(resp, stderr)