• Gustavo Niemeyer's avatar
    filepath: Abs must always return a clean path · 463f478d
    Gustavo Niemeyer authored
    When I was first coding Abs, I wondered if people wouldn't
    expect the path to be consistently clean, even if the path
    passed in was already absolute.
    
    CL 4524078 has a potential problem based on exactly that
    assumption, so it feels like this behavior is indeed the
    most useful and least surprising.
    
    R=golang-dev, adg
    CC=golang-dev
    https://golang.org/cl/4548074
    463f478d
path.go 8.98 KB