yorukot/superfile · error

cannot spawn process : %w

Error message

cannot spawn process : %w

What it means

Error "cannot spawn process : %w" thrown in yorukot/superfile.

Source

Thrown at src/internal/file_operations_extract.go:19

package internal

import (
	"fmt"
	"log/slog"
	"path/filepath"
	"time"

	"golift.io/xtractr"

	"github.com/yorukot/superfile/src/pkg/utils"

	"github.com/yorukot/superfile/src/internal/ui/processbar"
)

func extractCompressFile(src, dest string, processBar *processbar.Model) error {
	p, err := processBar.SendAddProcessMsg(filepath.Base(src), processbar.OpExtract, 1, true)
	if err != nil {
		return fmt.Errorf("cannot spawn process : %w", err)
	}

	x := &xtractr.XFile{
		FilePath:  src,
		OutputDir: dest,
		FileMode:  utils.ExtractedFileMode,
		DirMode:   utils.ExtractedDirMode,
	}

	_, _, _, err = xtractr.ExtractFile(x)

	if err != nil {
		p.State = processbar.Failed
		slog.Error("Error extracting", "path", src, "error", err)
	} else {
		p.State = processbar.Successful
		p.Done = 1
	}

View on GitHub (pinned to b72f550bc6)

When it happens

Trigger: Thrown at src/internal/file_operations_extract.go:19 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of yorukot/superfile@b72f550bc6 (2026-09-01). Data as JSON: /api/errors/a5f1d3c161631b8e. Report an issue: GitHub.