let lpath filename = path ^ "/" ^ filename in
let gpath filename = basedir ^ "/" ^ path ^ "/" ^ filename in
let dirlist =
- List.filter (fun x -> String.sub x 0 1 = ".")
+ List.filter (fun x -> String.sub x 0 1 <> ".")
(Array.to_list (Sys.readdir (basedir ^ "/" ^ path))) in
let subdirs = List.filter (fun x -> Sys.is_directory (gpath x)) dirlist in
let scripts =
try
let i = String.rindex x '.' in
let len = String.length x - i in
- not (Sys.is_directory (gpath x)) && (String.sub x i len = ".ma")
+ not (Sys.is_directory (gpath x)) &&
+ (String.sub x 0 1 <> ".") && (String.sub x i len = ".ma")
with Not_found | Invalid_argument _ -> false) dirlist in
let subdirtags =
String.concat "\n" (List.map (fun x -> aux (lpath x)) subdirs) in
}
};
dialogBox.style.display = "none";
- callServer("open",processor,"file=" + escape(thefile);
+ callServer("open",processor,"file=" + escape(thefile));
}
function showLibrary()