protected static function chmodPathSingle($path, $dirMode, $fileMode)
    {
        $result = false;

        $dirMode = self::valueToOct($dirMode);
        $fileMode = self::valueToOct($fileMode);

        $result = is_dir($path) ? chmod($path, $dirMode) : chmod($path, $fileMode);
        return $result;
    }
protected static function chmodPathSingle($path, $dirMode, $fileMode)
    {
        $result = false;

        $dirMode = self::valueToOct($dirMode);
        $fileMode = self::valueToOct($fileMode);

        $result = is_dir($path) ? chmod($path, $dirMode) : chmod($path, $fileMode);
        return $result;
    }
protected static function chmodPathSingle ( $ path , $ dirMode , $ fileMode ) { $ result = false ; $ dirMode = self :: valueToOct ( $ dirMode ) ; $ fileMode = self :: valueToOct ( $ fileMode ) ; $ result = is_dir ( $ path ) ? chmod ( $ path , $ dirMode ) : chmod ( $ path , $ fileMode ) ; return $ result ; }
Change permissions on a single file path

@param string $path Path to chmod
@param numeric $dirMode Mode to set for folder
@param numeric $fileMode Mode to set for file
@return boolean
Change permissions on a single file path