* entagged.tageditor.tools.renaming.data.FileDescriptor)
*/
public boolean accept(DirectoryDescriptor parent, FileDescriptor file) {
if (super.accept(parent, file)) {
// Now filter more.
final Statistic stat = file.getStatistic();
int errorCount = 0;
// If the source would be copied on that cases the there is no
// error.
if (!renameConfig.isCopyUnmodifiableFiles()) {
errorCount = stat
.getProperty(CanNotWriteProperty.PROPERTY_NAME);
}
errorCount += stat
.getProperty(DestinationExistsProperty.PROPERTY_NAME);
errorCount += stat
.getProperty(DuplicateErrorProperty.PROPERTY_NAME);
return errorCount == 0;
}
return false;
}