src/Data/Dir.php
public static function chmod($pDir, $pMode)
    {
        if (strpos($pMode, '0') !== 0) {
            $mode = octdec('0' . $pMode);
        } else {
            $mode = octdec($pMode);
        }

        return chmod($pDir, $mode);
    }
public static function chmod($pDir, $pMode)
    {
        if (strpos($pMode, '0') !== 0) {
            $mode = octdec('0' . $pMode);
        } else {
            $mode = octdec($pMode);
        }

        return chmod($pDir, $mode);
    }
public static function chmod ( $ pDir , $ pMode ) { if ( strpos ( $ pMode , '0' ) !== 0 ) { $ mode = octdec ( '0' . $ pMode ) ; } else { $ mode = octdec ( $ pMode ) ; } return chmod ( $ pDir , $ mode ) ; }
CHMOD a directory.

@param string $pDir
@param mixed $pMode
@return bool
CHMOD a directory .