diff --git a/scan.php b/scan.php index bc8c5b4..3bfd9f8 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); }