This commit is contained in:
parent
64c4863c2d
commit
7504dae463
|
@ -36,6 +36,7 @@ func GetFiles(w http.ResponseWriter, r *http.Request) {
|
||||||
fio, _ := os.Lstat(apiPath)
|
fio, _ := os.Lstat(apiPath)
|
||||||
if fio.IsDir() {
|
if fio.IsDir() {
|
||||||
apiNode.Type = "d"
|
apiNode.Type = "d"
|
||||||
|
// TOOD: Go API 用另外的样式
|
||||||
apiNode.IconSkin = "ico-ztree-dir "
|
apiNode.IconSkin = "ico-ztree-dir "
|
||||||
|
|
||||||
walk(apiPath, &apiNode)
|
walk(apiPath, &apiNode)
|
||||||
|
|
Loading…
Reference in New Issue