public function getPath($id, $file = null)
    {
        if (is_null($file)) {
            return sprintf('%s/%s/', $this->baseDir, $id);
        } else {
            return sprintf('%s/%s/%s', $this->baseDir, $id, $file);
        }
    }
public function getPath($id, $file = null)
    {
        if (is_null($file)) {
            return sprintf('%s/%s/', $this->baseDir, $id);
        } else {
            return sprintf('%s/%s/%s', $this->baseDir, $id, $file);
        }
    }
public function getPath ( $ id , $ file = null ) { if ( is_null ( $ file ) ) { return sprintf ( '%s/%s/' , $ this -> baseDir , $ id ) ; } else { return sprintf ( '%s/%s/%s' , $ this -> baseDir , $ id , $ file ) ; } }
Returns a path to a file in the target directory

@param string $id Nested directory's id
@param string $file A filename inside that nested directory
@return string
Returns a path to a file in the target directory