Example #1
0
 public function __construct()
 {
     parent::__construct();
     // get the path to the executable
     $avPath = \OCP\Config::getAppValue('files_antivirus', 'av_path', '/usr/bin/clamscan');
     // check that the executable is available
     if (!file_exists($avPath)) {
         throw new \RuntimeException('The antivirus executable could not be found at ' . $avPath);
     }
     $this->avPath = $avPath;
 }
Example #2
0
 public function __construct($useSocket)
 {
     parent::__construct($useSocket);
     $this->useSocket = $useSocket;
 }