Skip to content

os.MkdirAll doesn't like symlinks #1149

@alberts

Description

@alberts
What steps will reproduce the problem?
1. os.MkdirAll("foo/bar/baz", 0755) where foo is a symlink

What is the expected output?

Function should succeed.

What do you see instead?

mkdir foo: not a directory

Which compiler are you using (5g, 6g, 8g, gccgo)?

6g

Which operating system are you using?

linux

Which revision are you using?  (hg identify)

1eec33c03bce release.2010-09-22/release

Please provide any additional information below.

Python os.makedirs works if symlinks are involved.

A simple change from Lstat->Stat might fix things for Go.

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