"tree -J" 명령이 잘못된 Json을 반환합니다.

"tree -J" 명령이 잘못된 Json을 반환합니다.

내 컴퓨터에 명령을 실행했는데 tree -J이것이 제공한 출력의 일부입니다.

                {
                    "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"
                    }]
                }

해당 "오류" 노드를 살펴보세요. 유효한 Json이 아닌 것 같습니다( ,a 누락됨). 이런 종류의 오류가 표시되지 않도록 하려면 어떻게 해야 합니까?

사용v2.0.2

답변1

이것은 알려진 버그입니다.. 분명히 고쳐진 것 같은데어제, 2023년 5월 31일.

어디인지는 못 봤는데https://gitlab.com/OldManProgrammer/unix-tree/-/commit/84fa3ddff51b30835a0f9c4a9e4c9225970f9aff확정됐지만 그건 너와스티브 베이커.

관련 정보