File: fs_unix.go

package info (click to toggle)
golang-github-moby-sys 0.0~git20201113.5a29239-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, experimental
  • size: 460 kB
  • sloc: makefile: 35
file content (17 lines) | stat: -rw-r--r-- 260 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// +build !windows

package symlink

import (
	"path/filepath"
)

func evalSymlinks(path string) (string, error) {
	return filepath.EvalSymlinks(path)
}

func isDriveOrRoot(p string) bool {
	return p == string(filepath.Separator)
}

var isAbs = filepath.IsAbs