Class: NauktisUtils::Duplicate::DeletingStrategy::Safe

Inherits:
Simple show all
Defined in:
lib/nauktis_utils/duplicate.rb

Instance Method Summary collapse

Methods included from Logging

#logger, logger, logger=

Instance Method Details

#delete_duplicate(duplicate, original) ⇒ Object



119
120
121
122
123
124
125
# File 'lib/nauktis_utils/duplicate.rb', line 119

def delete_duplicate(duplicate, original)
  if FileUtils.compare(duplicate, original)
    super
  else
    logger.warn "Duplicate #{duplicate} was a false positive with #{original}"
  end
end