protected function generatePathname($id)
    {
        if (!file_exists($this->basePath)) {
            mkdir($this->basePath, 0777, true);
        }

        return $this->basePath.'/'.$id;
    }
protected function generatePathname($id)
    {
        if (!file_exists($this->basePath)) {
            mkdir($this->basePath, 0777, true);
        }

        return $this->basePath.'/'.$id;
    }
protected function generatePathname ( $ id ) { if ( ! file_exists ( $ this -> basePath ) ) { mkdir ( $ this -> basePath , 0777 , true ) ; } return $ this -> basePath . '/' . $ id ; }
Generate a pathname for an ID

@param string $id ID

@return string
Generate a pathname for an ID