Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Make ability to traverse a tree by post-order method #27

Open
KSXGitHub opened this issue Apr 26, 2016 · 1 comment
Open

Make ability to traverse a tree by post-order method #27

KSXGitHub opened this issue Apr 26, 2016 · 1 comment

Comments

@KSXGitHub
Copy link

KSXGitHub commented Apr 26, 2016

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
@KSXGitHub 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants
@lee-dohm @KSXGitHub and others