mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 16:36:20 +00:00
The initial_children= argument to nodemaker.create_new_mutable_directory is
now enabled.
This commit is contained in:
parent
c2520e4ec7
commit
480e1d318d
@ -479,9 +479,7 @@ class DirectoryNode:
|
||||
assert isinstance(name, unicode)
|
||||
if self.is_readonly():
|
||||
return defer.fail(NotMutableError())
|
||||
d = self._nodemaker.create_new_mutable_directory()
|
||||
if initial_children:
|
||||
d.addCallback(lambda n: n.set_children(initial_children))
|
||||
d = self._nodemaker.create_new_mutable_directory(initial_children)
|
||||
def _created(child):
|
||||
entries = [(name, child, None)]
|
||||
a = Adder(self, entries, overwrite=overwrite)
|
||||
|
@ -89,8 +89,8 @@ class NodeMaker:
|
||||
return d
|
||||
|
||||
def create_new_mutable_directory(self, initial_children={}):
|
||||
if initial_children:
|
||||
raise NotImplementedError("initial_children= not implemented yet")
|
||||
d = self.create_mutable_file()
|
||||
d.addCallback(self._create_dirnode)
|
||||
if initial_children:
|
||||
d.addCallback(lambda n: n.set_children(initial_children))
|
||||
return d
|
||||
|
Loading…
x
Reference in New Issue
Block a user