0

I gave the command tree -J to my machine, and this is a portion of the output it gave:

                {
                    "type": "file",
                    "name": "ca-certificates.conf"
                },
                {
                    "type": "file",
                    "name": "ca-certificates.conf.dpkg-old"
                },
                {
                    "type": "directory",
                    "name": "chatscripts"
                } {
                    "error": "error opening dir"
                },
                {
                    "type": "directory",
                    "name": "chromium",
                    "contents": [{
                        "type": "directory",
                        "name": "native-messaging-hosts"
                    }]
                }

Have a look at that "error" node: it does not appear to be valid Json (a , is missing). How can I avoid the displaying of such errors?

Using v2.0.2

  • seems to be aknown bug, see https://gitlab.com/OldManProgrammer/unix-tree/-/issues/11 – Bodo Jun 01 '23 at 09:59

1 Answers1

2

This is a known bug. Apparently it was fixed yesterday, 2023-05-31.

I'm not seeing where in https://gitlab.com/OldManProgrammer/unix-tree/-/commit/84fa3ddff51b30835a0f9c4a9e4c9225970f9aff it was fixed, but this is between you and Steve Baker.

JdeBP
  • 68,745