yorukot/superfile · error

Recycle Bin operation did not return a recycled item

Error message

Recycle Bin operation did not return a recycled item

What it means

Error "Recycle Bin operation did not return a recycled item" thrown in yorukot/superfile.

Source

Thrown at src/internal/trash/trash_windows.go:207

	sink := newProgressSink()
	if hr := fileOperation.call(18, uintptr(unsafe.Pointer(item)), uintptr(unsafe.Pointer(sink))); failed(hr) {
		return hresultError("IFileOperation.DeleteItem", hr)
	}
	if hr := fileOperation.call(21); failed(hr) {
		return hresultError("IFileOperation.PerformOperations", hr)
	}
	var aborted int32
	if hr := fileOperation.call(22, uintptr(unsafe.Pointer(&aborted))); failed(hr) {
		return hresultError("IFileOperation.GetAnyOperationsAborted", hr)
	}
	if aborted != 0 {
		return fmt.Errorf("Recycle Bin operation was aborted")
	}
	if sink.failedHR != 0 {
		return hresultError("IFileOperation.PostDeleteItem", sink.failedHR)
	}
	if !sink.recycled {
		return fmt.Errorf("Recycle Bin operation did not return a recycled item")
	}
	runtime.KeepAlive(sink)
	return nil
}

func shellItemFromPath(path string) (*comObject, error) {
	utf16Path, err := syscall.UTF16PtrFromString(path)
	if err != nil {
		return nil, err
	}
	var item *comObject
	hr, _, _ := procSHCreateItemFromParsingName.Call(
		uintptr(unsafe.Pointer(utf16Path)),
		0,
		uintptr(unsafe.Pointer(&iidIShellItem)),
		uintptr(unsafe.Pointer(&item)),
	)
	if failed(hr) {

View on GitHub (pinned to b72f550bc6)

When it happens

Trigger: Thrown at src/internal/trash/trash_windows.go:207 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/33213238a96e2f60. Report an issue: GitHub.