{"record":{"id":"36a42d18804ce424","repo":"AlistGo/alist","slug":"failed-to-create-directory-s-w","errorCode":null,"errorMessage":"failed to create directory [%s]: %w","messagePattern":"failed to create directory \\[(.+?)\\]: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/azure_blob/driver.go","lineNumber":236,"sourceCode":"\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,\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(),","sourceCodeStart":218,"sourceCodeEnd":254,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/azure_blob/driver.go#L218-L254","documentation":"Error \"failed to create directory [%s]: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/azure_blob/driver.go:236 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"}