assert directory.isDirectory();
assert directory.equals(FilenameNormalization.normalize(directory));
File[] files = directory.listFiles();
if (files == null)
{
problems.add(new UnableToListFilesProblem(directory));
return;
}
for (final File file : directory.listFiles())
{
assert file.equals(FilenameNormalization.normalize(file));