public function processDir($event, $req, $res, $path)
    {
        foreach($this->index as $name){
            $index_path = realpath($path.'/'.$name);
            if(is_file($index_path)) {
                return $this->sendFile($event, $req, $res, $index_path);
            }
        }
        
        if(!$this->auto_index){
            throw new \Exception("Directory browsing is Disabled", 403);
        }
        
        $this->dirList($path, $res);
        
        
    }