* @return
* @throws WinkBuildException
*/
public static boolean createDirectory(final Context cx, final Scriptable thisObj, final Object[] args, final Function funObj) throws WinkBuildException {
if (args.length != 1 || args[0] == null || !(args[0] instanceof String)) {
throw new WinkBuildException("isDirectory() error: bad arguments");
}
try {
return FileUtil.createDirectory((String) args[0], ".");
} catch (final IOException e) {
throw new WinkBuildException(e);
}
}