def anonymize_path(path)
      if @tags.length > 0
        prepare_anonymization
        files = DICOM.load_files(path)
        logger.info("#{files.length} DICOM files have been prepared for anonymization.")
        files.each do |f|
          dcm = anonymize_file(f)
          write(dcm)
        end
      else
        logger.warn("No tags have been selected for anonymization. Aborting anonymization.")
      end
      # Save the audit trail (if used):
      @audit_trail.write(@audit_trail_file) if @audit_trail
      logger.info("Anonymization complete.")
    end
def anonymize_path(path)
      if @tags.length > 0
        prepare_anonymization
        files = DICOM.load_files(path)
        logger.info("#{files.length} DICOM files have been prepared for anonymization.")
        files.each do |f|
          dcm = anonymize_file(f)
          write(dcm)
        end
      else
        logger.warn("No tags have been selected for anonymization. Aborting anonymization.")
      end
      # Save the audit trail (if used):
      @audit_trail.write(@audit_trail_file) if @audit_trail
      logger.info("Anonymization complete.")
    end
Anonymizes any DICOM files found at the given path (file or directory)
 with the settings of this Anonymizer instance.

 @param [String] path a file or directory path