let branch text acc =
let id = newid () in
- "<span class=\"trigger\" onClick=\"showBranch(" ^ id ^ ")\">\n" ^
+ "<span class=\"trigger\" onClick=\"showBranch('" ^ id ^ "')\">\n" ^
"<img src=\"treeview/closed.gif\" id=\"I" ^ id ^ "\"/>\n" ^
text ^ "<br/></span>\n" ^
"<span class=\"branch\" id=\"" ^ id ^ "\">\n" ^
in
let rec aux path =
- let dirlist = Array.to_list (Sys.readdir path) in
+ let dirlist =
+ List.filter (fun x -> String.sub x 0 1 = ".") (Array.to_list (Sys.readdir path)) in
let subdirs = List.filter (fun x -> Sys.is_directory (path ^ "/" ^ x)) dirlist in
let scripts =
List.filter (fun x ->