{"record":{"id":"dfa0b2a861992d9d","repo":"AlistGo/alist","slug":"move-operation-failed-w","errorCode":null,"errorMessage":"move operation failed: %w","messagePattern":"move operation failed: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/azure_blob/driver.go","lineNumber":161,"sourceCode":"\tdirPath := path.Join(parentDir.GetPath(), dirName)\n\tif err := d.mkDir(ctx, dirPath); err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to create directory marker: %w\", err)\n\t}\n\n\treturn &model.Object{\n\t\tPath:     dirPath,\n\t\tName:     dirName,\n\t\tIsFolder: true,\n\t}, nil\n}\n\n// Move relocates an object (file or directory) to a new directory.\nfunc (d *AzureBlob) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error) {\n\tsrcPath := srcObj.GetPath()\n\tdstPath := path.Join(dstDir.GetPath(), srcObj.GetName())\n\n\tif err := d.moveOrRename(ctx, srcPath, dstPath, srcObj.IsDir(), srcObj.GetSize()); err != nil {\n\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)","sourceCodeStart":143,"sourceCodeEnd":179,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/azure_blob/driver.go#L143-L179","documentation":"Error \"move operation failed: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/azure_blob/driver.go:161 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"}