core (memory): fixed _getParentDir call in setFile

This commit is contained in:
Goffi 2018-03-02 17:37:41 +01:00
commit c1dc9d4599

View file

@ -1281,7 +1281,7 @@ class Memory(object):
if peer_jid is None:
peer_jid = owner
# _getParentDir will check permissions if peer_jid is set
parent, remaining_path_elts = self._getParentDir(client, path, parent, namespace, owner, owner, perms_to_check)
parent, remaining_path_elts = yield self._getParentDir(client, path, parent, namespace, owner, owner, perms_to_check)
# if remaining directories don't exist, we have to create them
for new_dir in remaining_path_elts:
new_dir_id = shortuuid.uuid()