Hi, since some of the linux admins at work were addicted to tree (rough equivalent of an ascii-art find), I decided to check out the fts_ functions and write it for OpenBSD. I have to admit that in some cases it can be useful, at least it was fun to write. There are features missing from the original tree, some of which will obviously not be implemented (on the top of my head: HTML output, ANSI indentation and color support). Some other features won't be implemented since ls(1) and find(1) do a great job too, no need to rewrite everything.
attached is the port archive which you can also find here: http://spootnik.org/tree/tree-port.tgz. already tested on amd64 and i386, it works fine. I guess it can serve as simple code to illustrate the use of fts_ functions too, since the code is much shorter than that of ls(1), find(1) or other such utilities.
tree-port.tgz
Description: application/tar-gz
