{"record":{"id":"57241c0034312268","repo":"yorukot/superfile","slug":"recycle-bin-operation-was-aborted","errorCode":null,"errorMessage":"Recycle Bin operation was aborted","messagePattern":"Recycle Bin operation was aborted","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/internal/trash/trash_windows.go","lineNumber":201,"sourceCode":"\titem, err := shellItemFromPath(path)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefer item.release()\n\n\tsink := newProgressSink()\n\tif hr := fileOperation.call(18, uintptr(unsafe.Pointer(item)), uintptr(unsafe.Pointer(sink))); failed(hr) {\n\t\treturn hresultError(\"IFileOperation.DeleteItem\", hr)\n\t}\n\tif hr := fileOperation.call(21); failed(hr) {\n\t\treturn hresultError(\"IFileOperation.PerformOperations\", hr)\n\t}\n\tvar aborted int32\n\tif hr := fileOperation.call(22, uintptr(unsafe.Pointer(&aborted))); failed(hr) {\n\t\treturn hresultError(\"IFileOperation.GetAnyOperationsAborted\", hr)\n\t}\n\tif aborted != 0 {\n\t\treturn fmt.Errorf(\"Recycle Bin operation was aborted\")\n\t}\n\tif sink.failedHR != 0 {\n\t\treturn hresultError(\"IFileOperation.PostDeleteItem\", sink.failedHR)\n\t}\n\tif !sink.recycled {\n\t\treturn fmt.Errorf(\"Recycle Bin operation did not return a recycled item\")\n\t}\n\truntime.KeepAlive(sink)\n\treturn nil\n}\n\nfunc shellItemFromPath(path string) (*comObject, error) {\n\tutf16Path, err := syscall.UTF16PtrFromString(path)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tvar item *comObject\n\thr, _, _ := procSHCreateItemFromParsingName.Call(","sourceCodeStart":183,"sourceCodeEnd":219,"githubUrl":"https://github.com/yorukot/superfile/blob/b72f550bc6e75913f48eb49fdd258e1a2df2fe88/src/internal/trash/trash_windows.go#L183-L219","documentation":"Error \"Recycle Bin operation was aborted\" thrown in yorukot/superfile.","triggerScenarios":"Thrown at src/internal/trash/trash_windows.go:201 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b72f550bc6e75913f48eb49fdd258e1a2df2fe88","analyzedAt":"2026-09-01T04:38:08.254Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}