{"record":{"id":"f4326049ced19ef3","repo":"AlistGo/alist","slug":"rename-operation-failed-w","errorCode":null,"errorMessage":"rename operation failed: %w","messagePattern":"rename operation failed: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/azure_blob/driver.go","lineNumber":179,"sourceCode":"\t\treturn nil, fmt.Errorf(\"move operation failed: %w\", err)\n\t}\n\n\treturn &model.Object{\n\t\tPath:     dstPath,\n\t\tName:     srcObj.GetName(),\n\t\tModified: time.Now(),\n\t\tIsFolder: srcObj.IsDir(),\n\t\tSize:     srcObj.GetSize(),\n\t}, nil\n}\n\n// Rename changes the name of an existing object.\nfunc (d *AzureBlob) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error) {\n\tsrcPath := srcObj.GetPath()\n\tdstPath := path.Join(path.Dir(srcPath), newName)\n\n\tif err := d.moveOrRename(ctx, srcPath, dstPath, srcObj.IsDir(), srcObj.GetSize()); err != nil {\n\t\treturn nil, fmt.Errorf(\"rename operation failed: %w\", err)\n\t}\n\n\treturn &model.Object{\n\t\tPath:     dstPath,\n\t\tName:     newName,\n\t\tModified: time.Now(),\n\t\tIsFolder: srcObj.IsDir(),\n\t\tSize:     srcObj.GetSize(),\n\t}, nil\n}\n\n// Copy duplicates an object (file or directory) to a specified destination directory.\nfunc (d *AzureBlob) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error) {\n\tdstPath := path.Join(dstDir.GetPath(), srcObj.GetName())\n\n\t// Handle directory copying using flat listing\n\tif srcObj.IsDir() {\n\t\tsrcPrefix := srcObj.GetPath()","sourceCodeStart":161,"sourceCodeEnd":197,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/azure_blob/driver.go#L161-L197","documentation":"Error \"rename operation failed: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/azure_blob/driver.go:179 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the underlying error details in the message, fix the indicated cause (credentials, network, or provider-side failure), and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"843d9dc8149126976b2625911e45a4d3ffd6f2f5","analyzedAt":"2026-08-15T12:14:11.722Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}