2011-09-16 17:47:21 +02:00
|
|
|
// Copyright 2011 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
|
|
|
|
|
|
|
|
const (
|
2012-10-23 06:31:11 +02:00
|
|
|
PathSeparator = '/' // OS-specific path separator
|
|
|
|
PathListSeparator = '\000' // OS-specific path list separator
|
2011-09-16 17:47:21 +02:00
|
|
|
)
|
|
|
|
|
2015-10-31 01:59:47 +01:00
|
|
|
// IsPathSeparator reports whether c is a directory separator character.
|
2011-09-16 17:47:21 +02:00
|
|
|
func IsPathSeparator(c uint8) bool {
|
|
|
|
return PathSeparator == c
|
|
|
|
}
|
2018-09-24 23:46:21 +02:00
|
|
|
|
|
|
|
func fixRootDirectory(p string) string {
|
|
|
|
return p
|
|
|
|
}
|