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

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

@KSXGitHub

Description

@KSXGitHub

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions