You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
traverseTree and traverseTreeSync use pre-order by default, which means that onDirectory would be called with parent directory before the children.
Sometimes, it needs to be post-order which let the callbacks above executes with the children before the parent. (e.g. deleting tree).
So I suggest either:
Create traverseTreePostOrder and its corresponding sync version
Add one more parameter to these functions
The text was updated successfully, but these errors were encountered:
KSXGitHub
changed the title
Add traverse order argument for traverseTree and traverseTreeSync
Make ability to traverse a tree by post-order method
Apr 26, 2016
traverseTree
andtraverseTreeSync
use pre-order by default, which means thatonDirectory
would be called with parent directory before the children.Sometimes, it needs to be post-order which let the callbacks above executes with the children before the parent. (e.g. deleting tree).
So I suggest either:
traverseTreePostOrder
and its corresponding sync versionThe text was updated successfully, but these errors were encountered: