public FormInputValidator directory (VisValidatableTextField field, String errorMsg) {
		DirectoryValidator validator = new DirectoryValidator(errorMsg);
		field.addValidator(validator);
		add(field);
		return validator;
	}
public FormInputValidator directory ( VisValidatableTextField field , String errorMsg ) { DirectoryValidator validator = new DirectoryValidator ( errorMsg ) ; field . addValidator ( validator ) ; add ( field ) ; return validator ; }
Validates if relative path entered in text field points to an existing directory.