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;
    }