diff --git a/scan.php b/scan.php index 6656ceb..1dbbdb4 100644 --- a/scan.php +++ b/scan.php @@ -64,10 +64,11 @@ class MalwareScanner if ($cli === true) { //Read Run Options $this->parseArgs(); + $this->dir = realpath($this->dir); //Make sure a directory was specified. if ($this->dir === '') { - $this->error('No directory specified'); + $this->error('No directory specified or directory doesn\'t exist'); exit(-1); }