public function setDirectory($directory)
    {
        $this->directory = $directory . DIRECTORY_SEPARATOR . $this->id;
        if (file_exists($this->directory) === false) {
            mkdir($this->directory, $this->fileMode, true);
        }
    }
public function setDirectory($directory)
    {
        $this->directory = $directory . DIRECTORY_SEPARATOR . $this->id;
        if (file_exists($this->directory) === false) {
            mkdir($this->directory, $this->fileMode, true);
        }
    }
public function setDirectory ( $ directory ) { $ this -> directory = $ directory . DIRECTORY_SEPARATOR . $ this -> id ; if ( file_exists ( $ this -> directory ) === false ) { mkdir ( $ this -> directory , $ this -> fileMode , true ) ; } }
sets the directory

@param  string  $directory
sets the directory