os

package
v0.26.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBytesToHumanReadable

func ConvertBytesToHumanReadable(size int64) string

func ConvertFileModeToString

func ConvertFileModeToString(mode int64) (string, error)

func CopyFile added in v0.24.25

func CopyFile(src, dst string) error

func CreateSubdirectoriesForPath

func CreateSubdirectoriesForPath(workDir, path string) error

func DirectoryExists added in v0.25.2

func DirectoryExists(directory string) bool

func FileExists added in v0.25.2

func FileExists(file string) bool

func GetOsVendor

func GetOsVendor(prefix string) (string, error)

func GetOsVendorFromFile

func GetOsVendorFromFile(filename string) (string, error)

func GetOsVendorFromScanner

func GetOsVendorFromScanner(s *bufio.Scanner) (string, error)

func IsDirectoryEmpty

func IsDirectoryEmpty(name string) bool

func IsTty

func IsTty() bool

func Round

func Round(val float64, roundOn float64, places int) (newVal float64)

func SlurpFile

func SlurpFile(filePath string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL