Skip to content

os.MkdirAll fails on Windows #1831

@alexbrainman

Description

@alexbrainman
What steps will reproduce the problem?

build and run

package main

import (
    "fmt"
    "log"
    "os"
    "path/filepath"
)

func main() {
    path := filepath.Clean(`c:\tmp\a\b\c`)
    e := os.MkdirAll(path, 0777)
    if e != nil {
        log.Fatal(e)
    }
    fmt.Printf("All good\n")
}

What is the expected output?

All good

What do you see instead?

2011/05/16 07:33:13 mkdir c:\tmp\a\b\c: The system cannot find the path specified.

Please use labels and text to provide additional information.

hg id returns:
95d2ce135523+ (release-branch.r57) release/release.r57.1

GOOS=windows
GOARCH=386

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions