package
0.0.0-20221215221243-b79a0d8da330
Repository: https://github.com/purecloudlabs/gprovision.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Checks that a dir's inode does not change; if it does, call action().
Copy a file.
Copy files in flist to destDir, stripping srcDir.
Check for UTF byte order mark; if present, seeks past it.
Case-insensitive search of 'dir' for all of 'entries'.
Computes size of dir and contents.
Perform case-insensitive search for file matching name (not a glob), under root, max depth maxdepth.
ForcePathCase ensures correct case for some dir or file target in basepath.
Return free space for FS containing dir, or -1 in the event of an error.
Returns human-readable free space (in MB) for FS containing given dir.
Crude check that given path is not a glob.
Returns true if given path is a dir and is empty.
IsMountpoint searchs for given dir in /proc/self/mountinfo, returns true if found.
checks for XZ header.
Checks for XZ header and stream option byte indicating sha256.
Recursively find all files matching pattern in dir; return them and their total size.
Create dir in root with given owner, group, and mode.
ReadConfigLines reads a config file at the given path.
return n bytes from beginning of file.
RecursiveCopy walks tree rooted at src, copies dir 'src' to a subdir of dest.
Renames old in same dir, using newPfx + random suffix (via os.TempFile).
Called from a goroutine, updates lcd with size of a file.
Converts a size in bytes to megabytes; returns string with suffix 'MB'.
WaitFor waits for a file to appear or times out.
WaitForChan is like WaitFor, but returns no later than when stop chan is closed.
WaitForDir waits for a dir to exist, and, if watchedIsMountpoint is true,waits for a fs to mount there.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author