if not where or not path:
# create a new unlinked directory
url = nodeurl + "uri?t=mkdir"
+ if options["mutable-type"]:
+ url += "&mutable-type=%s" % urllib.quote(options['mutable-type'])
resp = do_http("POST", url)
rc = check_http_error(resp, stderr)
if rc:
# 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 += "&mutable-type=%s" % urllib.quote(options['mutable-type'])
+
resp = do_http("POST", url)
check_http_error(resp, stderr)
new_uri = resp.read().strip()