{"record":{"id":"0d8cd2daeb1013d6","repo":"AlistGo/alist","slug":"failed-to-copy-blob-w","errorCode":null,"errorMessage":"failed to copy blob: %w","messagePattern":"failed to copy blob: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/azure_blob/driver.go","lineNumber":250,"sourceCode":"\t\t// Create directory marker at destination if needed\n\t\tif len(blobs) == 0 {\n\t\t\terr := d.mkDir(ctx, dstPath)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"failed to create directory [%s]: %w\", dstPath, err)\n\t\t\t}\n\t\t}\n\n\t\treturn &model.Object{\n\t\t\tPath:     dstPath,\n\t\t\tName:     srcObj.GetName(),\n\t\t\tModified: time.Now(),\n\t\t\tIsFolder: true,\n\t\t}, nil\n\t}\n\n\t// Copy a single file\n\tif err := d.copyFile(ctx, srcObj.GetPath(), dstPath); err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to copy blob: %w\", err)\n\t}\n\treturn &model.Object{\n\t\tPath:     dstPath,\n\t\tName:     srcObj.GetName(),\n\t\tSize:     srcObj.GetSize(),\n\t\tModified: time.Now(),\n\t\tIsFolder: false,\n\t}, nil\n}\n\n// Remove deletes a specified blob or recursively deletes a directory and its contents.\nfunc (d *AzureBlob) Remove(ctx context.Context, obj model.Obj) error {\n\tpath := obj.GetPath()\n\n\t// Handle recursive directory deletion\n\tif obj.IsDir() {\n\t\treturn d.deleteFolder(ctx, path)\n\t}","sourceCodeStart":232,"sourceCodeEnd":268,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/azure_blob/driver.go#L232-L268","documentation":"Error \"failed to copy blob: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/azure_blob/driver.go:250 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"}