package
0.48.2
Repository: https://github.com/gruntwork-io/terratest.git
Documentation: pkg.go.dev

# Functions

CopyFile copies a file from source to destination.
CopyFolderContents copies all the files and folders within the given source folder to the destination folder.
CopyFolderContentsWithFilter copies the files and folders within the given source folder that pass the given filter (return true) to the destination folder.
CopyFolderToDest creates a copy of the given folder and all its filtered contents in a temp folder with a unique name and the given prefix.
CopyFolderToTemp calls CopyFolderToDest, passing os.TempDir() as the root destination folder.
CopyTerraformFolderToDest creates a copy of the given folder and all its contents in a specified folder with a unique name and the given prefix.
CopyTerraformFolderToTemp calls CopyTerraformFolderToDest, passing os.TempDir() as the root destination folder.
CopyTerragruntFolderToDest creates a copy of the given folder and all its contents in a specified folder with a unique name and the given prefix.
CopyTerragruntFolderToTemp calls CopyTerragruntFolderToDest, passing os.TempDir() as the root destination folder.
FileExists returns true if the given file exists.
FileExistsE returns true if the given file exists It will return an error if os.Stat error is not an ErrNotExist.
FindTerraformSourceFilesInDir given a directory path, finds all the terraform source files contained in it.
IsExistingDir returns true if the path exists and is a directory.
IsExistingFile returns true if the path exists and is a file.
PathContainsHiddenFileOrFolder returns true if the given path contains a hidden file or folder.
PathContainsTerraformState returns true if the path corresponds to a Terraform state file.
PathContainsTerraformStateOrVars returns true if the path corresponds to a Terraform state file or .tfvars/.tfvars.json file.
PathIsTerraformLockFile return true if the given path is the special '.terraform.lock.hcl' file used by Terraform to lock providers versions.
PathIsTerraformVersionFile returns true if the given path is the special '.terraform-version' file used by the [mise](https://github.com/jdx/mise) tool.
WriteFileWithSamePermissions writes a file to the given destination with the given contents using the same permissions as the file at source.

# Structs

DirNotFoundError is an error that occurs if a directory doesn't exist.