I want to check whether repository exist on the given path or not before executing the process below..any ideas ?
var exe = Components.classes['@mozilla.org/filelocal;1'].
createInstance(Components.interfaces.nsILocalFile);
exe.initWithPath("HG.EXE");
var process = Components.classes["@mozilla.org/process/util;1"].
createInstance(Components.interfaces.nsIProcess);
Process.init(exe);
args = ["init", "D:\\testRepo\\"];
process.run(blocking, args, args.length);