Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The rebase generated way too many collisions. It was faster to create a new branch. Moving folders used childCount() as the test condition in a for loop. Because I moved the children into the new folder, childCount() got decremented by one. This resulted in the loop counter getting incremented, the test condition getting decremented and me moving only about half the children. The fix is a bit more involved, since I don't move folders. I capture the starting childCount at the start and use that for the test condition, and I only take the first non-folder child through the whole operation. The only tricky part is that I don't move folders, so I have to increment a counter to indicate where the first non-folder item is.
- Loading branch information