package system

import "github.com/moby/buildkit/util/system"

Index

Constants

const DefaultPathEnvUnix = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

DefaultPathEnvUnix is unix style list of directories to search for executables. Each directory is separated from the next by a colon ':' character .

const DefaultPathEnvWindows = "c:\\Windows\\System32;c:\\Windows"

DefaultPathEnvWindows is windows style list of directories to search for executables. Each directory is separated from the next by a colon ';' character .

Functions

func Atime

func Atime(st iofs.FileInfo) (time.Time, error)

func CheckSystemDriveAndRemoveDriveLetter

func CheckSystemDriveAndRemoveDriveLetter(path string) (string, error)

CheckSystemDriveAndRemoveDriveLetter verifies that a path, if it includes a drive letter, is the system drive. This is a no-op on Linux.

func DefaultPathEnv

func DefaultPathEnv(os string) string

Source Files

atime_unix.go path.go path_unix.go

Version
v0.11.0-rc4
Published
Jan 6, 2023
Platform
js/wasm
Imports
5 packages
Last checked
4 minutes ago

Tools for package owners.