yorukot/superfile · error
%s is already inside a trash directory
Error message
%s is already inside a trash directory
What it means
Error "%s is already inside a trash directory" thrown in yorukot/superfile.
Source
Thrown at src/internal/trash/trash_linux.go:60
return false
}
_, err = selectTrashDir(pathAbs, true)
return err == nil
}
func Move(path string) (Result, error) {
srcAbs, err := filepath.Abs(path)
if err != nil {
return Result{OriginalPath: path, Backend: BackendFreeDesktop}, err
}
srcAbs = filepath.Clean(srcAbs)
if srcAbs == string(filepath.Separator) {
return Result{OriginalPath: srcAbs, Backend: BackendFreeDesktop},
errors.New("refusing to trash filesystem root")
}
if isInsideKnownTrash(srcAbs) {
return Result{OriginalPath: srcAbs, Backend: BackendFreeDesktop},
fmt.Errorf("%s is already inside a trash directory", srcAbs)
}
td, err := selectTrashDir(srcAbs, true)
if err != nil {
return Result{OriginalPath: srcAbs, Backend: BackendFreeDesktop}, err
}
trashName, infoPath, filesPath, err := reserveTrashInfo(td, srcAbs)
if err != nil {
return Result{OriginalPath: srcAbs, Backend: BackendFreeDesktop}, err
}
if err := movePath(srcAbs, filesPath); err != nil {
_ = os.Remove(infoPath)
_ = os.RemoveAll(filesPath)
return Result{OriginalPath: srcAbs, Backend: BackendFreeDesktop}, err
}
View on GitHub (pinned to b72f550bc6)
When it happens
Trigger: Thrown at src/internal/trash/trash_linux.go:60 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/360436a441d78435.
Report an issue: GitHub.