mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
CL 661575 inadvertently caused os.RemoveDir on Windows to fail when given a path with a trailing / or \, due to the splitPath function not correctly stripping trailing separators. Fixes #73317 Change-Id: I21977b94bb08ff1e563de6f5f16a4bdf5024a15e Reviewed-on: https://go-review.googlesource.com/c/go/+/664715 Auto-Submit: Damien Neil <dneil@google.com> TryBot-Bypass: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Alan Donovan <adonovan@google.com>
16 lines
395 B
Go
16 lines
395 B
Go
// Copyright 2016 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package os
|
|
|
|
// Export for testing.
|
|
|
|
var (
|
|
AddExtendedPrefix = addExtendedPrefix
|
|
NewConsoleFile = newConsoleFile
|
|
CommandLineToArgv = commandLineToArgv
|
|
AllowReadDirFileID = &allowReadDirFileID
|
|
SplitPath = splitPath
|
|
)
|