Copy children recursively and asynchronously #87

wants to merge 11 commits into


None yet
2 participants

The method copyNode() in jsDAV_Tree invokes the getChildren() method in a synchronous fashion. This method is defined asynchronous by the API. I propose a fix by properly calling the getChildren() method asynchronously.

I also spotted another point where an async function was called asynchronously. For the sake of completeness, I found the two bugs while trying to move a folder from one path in the tree to another.

Another fix, the createFile() method was calling with three parameters instead of four. I think that iCollection.js should be updated to reflect the new method signature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment