protected function setPermissions($installPath, $basePerms = 0644)
    {
        $fsm = new Filesystem;
        foreach ($this->chmodNodes as $fsNode) {
            $path = $installPath . DIRECTORY_SEPARATOR . $fsNode;
            $isFile = is_file($path);
            $isDir = is_dir($path);
            if (!$isFile && !$isDir) {
                DebugPrinter::log('Filesystem node %s not found', $path);
                continue;
            }
            $perms = $basePerms;
            if ($isDir) {
                $perms |= 0111;
            }
            $args = array($path, decoct($perms),);
            DebugPrinter::log('Chmodding `%s` to `%s`', $args);
            $fsm->chmod($path, $perms);
        }
    }