# Functions

ArchiveDir archives a directory or a file into a tgz file and put it at destTgzPath which should end with .tgz.
CompareDirs compares the contents of the directory at fromDirpath against that of the directory at toDirpath within a given filesystem It execute leftOnlyFunc on paths that only exist on the leftDirpath and rightOnlyFunc on paths that only exist on rightDirpath It executes bothFunc on paths that exist on both the left and the right.
CompareTgzs checks to see if the file contents of the archive found at leftTgzPath matches that of the archive found at rightTgzPath It does this by comparing the sha256sum of the file contents, ignoring any other information (e.g.
CopyDir copies all files from srcDir to dstDir.
CopyFile copies a file from srcPath to dstPath within a filesystem.
CreateFileAndDirs creates a file on the filesystem and all relevant directories along the way if they do not exist.
GetAbsPath returns the absolute path given the relative path within a filesystem.
GetChartArchive gets a chart tgz file from a url and drops it into the path specified on the filesystem.
GetFilesystem returns a filesystem rooted at the provided path.
GetRelativePath returns the relative path given the absolute path within a filesystem.
GetRootPath returns the first directory in a given path.
IsEmptyDir returns whether the path provided is an empty directory or an error.
MakeSubdirectoryRoot makes a particular subdirectory of a path its main directory.
MovePath takes a path that is contained within fromDir and returns the same path contained within toDir.
PathExists checks if a path exists on the filesystem or returns an error.
PruneEmptyDirsInPath removes all empty directories located within the path.
RemoveAll removes all files and directories located at the path.
UnarchiveTgz attempts to unarchive the tgz file found at tgzPath in the filesystem.
UpdatePermissions updates the permissions for a given path to the mode provided.
WalkDir walks through a directory given by dirPath rooted in the filesystem and performs doFunc at the path The path on each call will be relative to the filesystem provided.

# Type aliases

RelativePathFunc is a function that is applied on a relative path within the given filesystem.
RelativePathPairFunc is a function that is applied on a pair of relative paths in a filesystem.