{"record":{"id":"7c59ccdcecdc3507","repo":"AlistGo/alist","slug":"failed-to-create-directory-marker-s-w-7c59cc","errorCode":null,"errorMessage":"failed to create directory marker [%s]: %w","messagePattern":"failed to create directory marker \\[(.+?)\\]: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/azure_blob/util.go","lineNumber":289,"sourceCode":"\t\tsrcPath = ensureTrailingSlash(srcPath)\n\t\tdstPath = ensureTrailingSlash(dstPath)\n\n\t\t// List all blobs under the source directory\n\t\tblobs, err := d.flattenListBlobs(ctx, srcPath)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"failed to list blobs: %w\", err)\n\t\t}\n\n\t\t// Iterate and copy each blob to the destination\n\t\tfor _, item := range blobs {\n\t\t\tsrcBlobName := *item.Name\n\t\t\trelPath := strings.TrimPrefix(srcBlobName, srcPath)\n\t\t\titemDstPath := path.Join(dstPath, relPath)\n\n\t\t\tif isDirectory(item) {\n\t\t\t\t// Create directory marker at destination\n\t\t\t\tif err := d.mkDir(ctx, itemDstPath); err != nil {\n\t\t\t\t\treturn 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 file blob to destination\n\t\t\t\tif err := d.copyFile(ctx, srcBlobName, itemDstPath); err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"failed to copy blob [%s]: %w\", srcBlobName, err)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Handle empty directories by creating a marker at destination\n\t\tif len(blobs) == 0 {\n\t\t\tif err := d.mkDir(ctx, dstPath); err != nil {\n\t\t\t\treturn fmt.Errorf(\"failed to create directory [%s]: %w\", dstPath, err)\n\t\t\t}\n\t\t}\n\n\t\t// Delete source directory and its contents\n\t\tif err := d.deleteFolder(ctx, srcPath); err != nil {","sourceCodeStart":271,"sourceCodeEnd":307,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/azure_blob/util.go#L271-L307","documentation":"Error \"failed to create directory marker [%s]: %w\" thrown in AlistGo/alist.","triggerScenarios":"Thrown at drivers/azure_blob/util.go:289 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"}