classes/phing/system/io/FileSystem.php
public function createDirectory(&$f, $mode = 0755)
    {
        $old_umask = umask(0);
        $return = @mkdir($f->getAbsolutePath(), $mode);
        umask($old_umask);

        return $return;
    }
public function createDirectory(&$f, $mode = 0755)
    {
        $old_umask = umask(0);
        $return = @mkdir($f->getAbsolutePath(), $mode);
        umask($old_umask);

        return $return;
    }
public function createDirectory ( & $ f , $ mode = 0755 ) { $ old_umask = umask ( 0 ) ; $ return = @ mkdir ( $ f -> getAbsolutePath ( ) , $ mode ) ; umask ( $ old_umask ) ; return $ return ; }
Create a new directory denoted by the given abstract pathname,
returning true if and only if the operation succeeds.

NOTE: umask() is reset to 0 while executing mkdir(), and restored afterwards

@param  PhingFile $f
@param  int $mode
@return boolean
Create a new directory denoted by the given abstract pathname returning true if and only if the operation succeeds .