classes/phing/system/io/PhingFile.php
public function mkdirs($mode = 0755)
    {
        if ($this->exists()) {
            return false;
        }
        try {
            if ($this->mkdir($mode)) {
                return true;
            }
        } catch (IOException $ioe) {
            // IOException from mkdir() means that directory propbably didn't exist.
        }
        $parentFile = $this->getParentFile();

        return (($parentFile !== null) && ($parentFile->mkdirs($mode) && $this->mkdir($mode)));
    }
public function mkdirs($mode = 0755)
    {
        if ($this->exists()) {
            return false;
        }
        try {
            if ($this->mkdir($mode)) {
                return true;
            }
        } catch (IOException $ioe) {
            // IOException from mkdir() means that directory propbably didn't exist.
        }
        $parentFile = $this->getParentFile();

        return (($parentFile !== null) && ($parentFile->mkdirs($mode) && $this->mkdir($mode)));
    }
public function mkdirs ( $ mode = 0755 ) { if ( $ this -> exists ( ) ) { return false ; } try { if ( $ this -> mkdir ( $ mode ) ) { return true ; } } catch ( IOException $ ioe ) { // IOException from mkdir() means that directory propbably didn't exist. } $ parentFile = $ this -> getParentFile ( ) ; return ( ( $ parentFile !== null ) && ( $ parentFile -> mkdirs ( $ mode ) && $ this -> mkdir ( $ mode ) ) ) ; }
Creates the directory named by this abstract pathname, including any
necessary but nonexistent parent directories.  Note that if this
operation fails it may have succeeded in creating some of the necessary
parent directories.

@param  int $mode
@throws IOException
@return boolean     true if and only if the directory was created,
along with all necessary parent directories; false
otherwise
Creates the directory named by this abstract pathname including any necessary but nonexistent parent directories . Note that if this operation fails it may have succeeded in creating some of the necessary parent directories .