protected function computePath($key)
    {
        $this->ensureDirectoryExists($this->directory, $this->create);

        return $this->normalizePath($this->directory.'/'.$key);
    }
protected function computePath($key)
    {
        $this->ensureDirectoryExists($this->directory, $this->create);

        return $this->normalizePath($this->directory.'/'.$key);
    }
protected function computePath ( $ key ) { $ this -> ensureDirectoryExists ( $ this -> directory , $ this -> create ) ; return $ this -> normalizePath ( $ this -> directory . '/' . $ key ) ; }
Computes the path from the specified key.

@param string $key The key which for to compute the path

@return string A path

@throws \InvalidArgumentException If the directory already exists
@throws \OutOfBoundsException     If the computed path is out of the directory
@throws \RuntimeException         If directory does not exists and cannot be created
Computes the path from the specified key .