Example Output:
The directory junk does NOT exist
TREE 1.7.0
==========
$ tree -J "/tmp/junk" -s -L 1 --noreport
[
{"type":"unknown","name":"/tmp/junk","contents":[{"error": "opening dir"}
]}
]
TREE 2.1.1
==========
$ tree.2.1.1 -J "/tmp/junk" -s -L 1 --noreport
[
,"name":"/tmp/junk","contents":[{"error": "error opening dir"}
]}
]
This Seems to be missing from the output on 2.1.1
{"type":"unknown"
Which leads to malformed JSON
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2113790
Title:
JSON and XML output broken if path invalid
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tree/+bug/2113790/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs