package
1.3.0
Repository: https://gitlab.com/cznic/fileutil
Documentation: pkg.go.dev

# Functions

AbsCwd returns the absolute working directory.
CopyDir recursively copies src to dest, preserving permissions and times where/when possible.
CopyFile copies src to dest, preserving permissions and times where/when possible.
Env returns the value of environmental variable key of dflt otherwise.
Fatal prints its argumenst to os.Stderr and performs os.Exit(1).
Fatalf prints a formatted message to os.Stderr and performs os.Exit(1).
InDir executes f in dir.
Mkdirs will create all paths.
MustAbsCwd is like AbsCwd but executes Fatal(stackTrace, err) if it fails.
MustCopyDir is like CopyDir, but it executes Fatal(stackTrace, errú if it fails.
MustCopyFile is like CopyFile but it executes Fatal(stackTrace, err) if it fails.
MustInDir is like InDir but it executes Fatal(stackTrace, err) if it fails.
MustMkdirs is like Mkdir but if executes Fatal(stackTrace, err) if it fails.
MustShell is like Shell but it executes Fatal(stackTrace, err) if it fails.
MustTempDir is like ioutil.TempDir but executes Fatal(stackTrace, err) if it fails.
MustUntar is like Untar but it executes Fatal(stackTrace, err) if it fails.
MustUntarFile is like UntarFile but it executes Fatal(stackTrace, err) if it fails.
Shell echoes and executes cmd with args and returns the combined output if the command.
Untar extracts a tar.gz archive into dst.
UntarFile extracts a named tar.gz archive into dst.