protected function ensureDirExists($path)
    {
        $f = new PhingFile($this->getOutputDirectory(), $path);
        if (!$f->exists()) {
            if (!$f->mkdirs()) {
                throw new BuildException("Error creating directories: " . $f->getPath());
            }
        }
    }
protected function ensureDirExists($path)
    {
        $f = new PhingFile($this->getOutputDirectory(), $path);
        if (!$f->exists()) {
            if (!$f->mkdirs()) {
                throw new BuildException("Error creating directories: " . $f->getPath());
            }
        }
    }
protected function ensureDirExists ( $ path ) { $ f = new PhingFile ( $ this -> getOutputDirectory ( ) , $ path ) ; if ( ! $ f -> exists ( ) ) { if ( ! $ f -> mkdirs ( ) ) { throw new BuildException ( "Error creating directories: " . $ f -> getPath ( ) ) ; } } }
Utility method to create directory for package if it doesn't already exist.

@param string $path The [relative] package path.

@throws BuildException - if there is an error creating directories
Utility method to create directory for package if it doesn t already exist .