/* For fqn, check '*' '<' '>' '|' '"' '?' and also '\' '/' and ':' */
Pattern fqnPattern = Pattern.compile("[\\\\\\/:*<>|\"?]");
List elements = fqn.peekElements();
for (Object anElement : elements)
{
Matcher matcher = fqnPattern.matcher(anElement.toString());
if (matcher.find())
{
log.warn("One of the Fqn ( " + fqn + " ) elements contains one of these characters: '*' '<' '>' '|' '\"' '?' '\\' '/' ':' ");
log.warn("Directories containing these characters are illegal in some operative systems and could lead to portability issues");
return false;
}
}
return true;