Skip to content

Commit

Permalink
fixed wrong path deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedeboer committed Sep 24, 2010
1 parent 803c57f commit 9fb07de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/DAV/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1372,12 +1372,13 @@ exports.VERSION = "0.1";
};

if (depth == 1 && parentNode.hasFeature(jsDAV.__ICOLLECTION__)) {
delete nodes.path;
parentNode.getChildren(function(err, cNodes) {
if (!Util.empty(err))
return cbgetpropspath(err);
for (var i = 0, l = cNodes.length; i < l; ++i)
nodes[cNodes[i].path] = cNodes[i];
if (l === 0)
delete nodes.path;
afterGetChildren(nodes);
});
}
Expand Down

0 comments on commit 9fb07de

Please sign in to comment.