[PATCH v2] Added miscutil/tree.c

rknecht at pm.me rknecht at pm.me
Mon Apr 18 08:58:10 UTC 2022


> One problem I see in your V2 is that unlike real tree it does not
> handle multiple paths as command line args:
>
> tree dir dir2 dirn
I will fix that in the next version.

> Also the use of DT_DIR is problematic as only some filesystems
> have full support.
You are right, will fix.

> 1) correct link handling:
Will fix it (incl. correct dir/file count for symlinks).

> 3) It is worth mentioning that by using alphasort
> as sorting algorithm the output of complex trees
> is somewhat different in the ordering of files
> ( for example uppercase , lowercase)
> as the real tree program.
Feel free to provide the sorting function. I will include it in the patch.

Thanks for the review,
Roger


More information about the busybox mailing list