【发布时间】:2013-04-13 16:30:21
【问题描述】:
我有一个带有文件夹结构的文本文件:
+---A Momentary Lapse of Reason
+---A Saucerful of Secrets
+---Animals
+---Atom Heart Mother
+---Delicate Sound Of Thunder
+---Echoes- The Best of Pink Floyd
| +---Echoes- The Best of Pink Floyd Disc 1
| \---Echoes- The Best of Pink Floyd Disc 2
+---Is There Anybody out There- The Wall- Live 1980-1981 Disc 1
+---Is There Anybody out There- The Wall- Live 1980-1981 Disc 2
\---Works
我使用tree 命令从windows CMD 收到它。
我想知道是否有一种简单的方法可以将此结构转换为json?
对于这样的事情,手动完成并不难,但我需要为 12TB 文件夹执行此操作。
【问题讨论】:
标签: windows json command-line tree