Class AnalyseFileForVirusHelper

java.lang.Object
org.ametys.runtime.servlet.AnalyseFileForVirusHelper

public final class AnalyseFileForVirusHelper extends Object
Helper that analyzes a file for viruses
  • Field Details

  • Method Details

    • isAntivirusEnabled

      public static boolean isAntivirusEnabled()
      k Checks if the antivirus is enabled
      Returns:
      true if the antivirus is enabled, false otherwise
    • analysefile

      public static boolean analysefile(String absolutePath)
      Antivirus analysis. Based on clamscan results.
      Parameters:
      absolutePath - the absolute path of the file to analyse
      Returns:
      true if the file is correct, false if a malware was discovered in the file