{"record":{"id":"6fe5da7a12364f1c","repo":"AlistGo/alist","slug":"failed-to-copy-s-w","errorCode":null,"errorMessage":"failed to copy %s: %w","messagePattern":"failed to copy (.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/azure_blob/driver.go","lineNumber":226,"sourceCode":"\t\t\t// Skip the directory marker itself\n\t\t\tif *blob.Name == srcPrefix {\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\t// Calculate relative path from source\n\t\t\trelPath := strings.TrimPrefix(*blob.Name, srcPrefix)\n\t\t\titemDstPath := path.Join(dstPath, relPath)\n\n\t\t\tif strings.HasSuffix(itemDstPath, \"/\") || (blob.Metadata[\"hdi_isfolder\"] != nil && *blob.Metadata[\"hdi_isfolder\"] == \"true\") {\n\t\t\t\t// Create directory marker at destination\n\t\t\t\terr := d.mkDir(ctx, itemDstPath)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn nil, fmt.Errorf(\"failed to create directory marker [%s]: %w\", itemDstPath, err)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Copy the blob\n\t\t\t\tif err := d.copyFile(ctx, *blob.Name, itemDstPath); err != nil {\n\t\t\t\t\treturn nil, fmt.Errorf(\"failed to copy %s: %w\", *blob.Name, err)\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\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,","sourceCodeStart":208,"sourceCodeEnd":244,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/azure_blob/driver.go#L208-L244","documentation":"Error \"failed to copy %s: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/azure_blob/driver.go:226 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-15T22:17:37.221Z"}