mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-18 23:38:18 +00:00
webapi: t=mkdir now accepts initial children, using the same JSON that t=json
emits. client.create_dirnode(initial_children=) now works.
This commit is contained in:
@ -459,7 +459,6 @@ class Client(node.Node, pollmixin.PollMixin):
|
||||
|
||||
def create_dirnode(self, initial_children={}):
|
||||
d = self.nodemaker.create_new_mutable_directory()
|
||||
assert not initial_children, "not ready yet: %s" % (initial_children,)
|
||||
if initial_children:
|
||||
d.addCallback(lambda n: n.set_children(initial_children))
|
||||
return d
|
||||
|
Reference in New Issue
Block a user