private function checkDir($dir)
    {
        if (! $this->fs->exists($dir)) {
            $this->fs->mkdir($dir);
        }
    }
private function checkDir($dir)
    {
        if (! $this->fs->exists($dir)) {
            $this->fs->mkdir($dir);
        }
    }
private function checkDir ( $ dir ) { if ( ! $ this -> fs -> exists ( $ dir ) ) { $ this -> fs -> mkdir ( $ dir ) ; } }
Creates the directory if it does not exists.

@param $dir
Creates the directory if it does not exists .