yorukot/superfile · error
cannot access location : %s
Error message
cannot access location : %s
What it means
Error "cannot access location : %s" thrown in yorukot/superfile.
Source
Thrown at src/internal/ui/filemodel/update.go:21
import (
"fmt"
"log/slog"
"os"
tea "charm.land/bubbletea/v2"
"github.com/yorukot/superfile/src/internal/common"
"github.com/yorukot/superfile/src/internal/ui/filepanel"
"github.com/yorukot/superfile/src/internal/ui/preview"
)
func (m *Model) CreateNewFilePanel(location string) (tea.Cmd, error) {
if m.PanelCount() >= m.MaxFilePanel {
return nil, ErrMaximumPanelCount
}
if _, err := os.Stat(location); err != nil {
return nil, fmt.Errorf("cannot access location : %s", location)
}
m.FilePanels = append(m.FilePanels, filepanel.New(
location, false, "", m.GetFocusedFilePanel().SortKind,
m.GetFocusedFilePanel().SortReversed))
newPanelIndex := m.PanelCount() - 1
m.FilePanels[m.FocusedPanelIndex].IsFocused = false
m.FilePanels[newPanelIndex].IsFocused = true
m.FilePanels[newPanelIndex].SetHeight(m.Height)
m.FocusedPanelIndex = newPanelIndex
m.updateChildComponentWidth()
return m.ensurePreviewDimensionsSync(), nil
}
func (m *Model) CloseFilePanel() (tea.Cmd, error) {View on GitHub (pinned to b72f550bc6)
When it happens
Trigger: Thrown at src/internal/ui/filemodel/update.go:21 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/18737f7fc5ab303c.
Report an issue: GitHub.