path_plan9.go 497 B

12345678910111213141516171819
  1. // Copyright 2011 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package os
  5. const (
  6. PathSeparator = '/' // OS-specific path separator
  7. PathListSeparator = '\000' // OS-specific path list separator
  8. )
  9. // IsPathSeparator reports whether c is a directory separator character.
  10. func IsPathSeparator(c uint8) bool {
  11. return PathSeparator == c
  12. }
  13. func fixRootDirectory(p string) string {
  14. return p
  15. }