{"record":{"id":"6ae9ab266ed3380e","repo":"AlistGo/alist","slug":"failed-to-create-directory-marker-w","errorCode":null,"errorMessage":"failed to create directory marker: %w","messagePattern":"failed to create directory marker: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/azure_blob/driver.go","lineNumber":145,"sourceCode":"}\n\n// Link generates a temporary SAS URL for accessing a blob.\nfunc (d *AzureBlob) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error) {\n\tblobClient := d.containerClient.NewBlobClient(file.GetPath())\n\texpireDuration := time.Hour * time.Duration(d.SignURLExpire)\n\n\tsasURL, err := blobClient.GetSASURL(sas.BlobPermissions{Read: true}, time.Now().Add(expireDuration), nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to generate SAS URL: %w\", err)\n\t}\n\treturn &model.Link{URL: sasURL}, nil\n}\n\n// MakeDir creates a virtual directory by uploading an empty blob as a marker.\nfunc (d *AzureBlob) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error) {\n\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","sourceCodeStart":127,"sourceCodeEnd":163,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/azure_blob/driver.go#L127-L163","documentation":"Error \"failed to create directory marker: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/azure_blob/driver.go:145 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"}