标签: javascript linux ls
是否有ls的参数强制它以JSON格式输出数据?
ls
ls -json [ {"name":"file1", "date":"2014-02-13 15:22:47.004854200 +0700", "size":132017}, {"name":"file2", "date":"2014-02-13 15:09:21.004826640 +0700", "size":372323} ]