{"record":{"id":"7d3c936d3a4cfe3c","repo":"AlistGo/alist","slug":"failed-to-create-directory-w","errorCode":null,"errorMessage":"failed to create directory: %w","messagePattern":"failed to create directory: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/proton_drive/driver.go","lineNumber":285,"sourceCode":"\t}, nil\n}\n\nfunc (d *ProtonDrive) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error) {\n\tvar parentLinkID string\n\n\tif parentDir.GetPath() == \"/\" {\n\t\tparentLinkID = d.protonDrive.RootLink.LinkID\n\t} else {\n\t\tlink, err := d.searchByPath(ctx, parentDir.GetPath(), true)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tparentLinkID = link.LinkID\n\t}\n\n\t_, err := d.protonDrive.CreateNewFolderByID(ctx, parentLinkID, dirName)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to create directory: %w\", err)\n\t}\n\n\tnewDir := &model.Object{\n\t\tName:     dirName,\n\t\tIsFolder: true,\n\t\tModified: time.Now(),\n\t}\n\treturn newDir, nil\n}\n\nfunc (d *ProtonDrive) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error) {\n\treturn d.DirectMove(ctx, srcObj, dstDir)\n}\n\nfunc (d *ProtonDrive) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error) {\n\n\tif d.protonDrive == nil {\n\t\treturn nil, fmt.Errorf(\"protonDrive bridge is nil\")","sourceCodeStart":267,"sourceCodeEnd":303,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/proton_drive/driver.go#L267-L303","documentation":"Error \"failed to create directory: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/proton_drive/driver.go:285 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"}