aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/hashicorp/terraform/config/loader.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/config/loader.go')
-rw-r--r--vendor/github.com/hashicorp/terraform/config/loader.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/vendor/github.com/hashicorp/terraform/config/loader.go b/vendor/github.com/hashicorp/terraform/config/loader.go
index 6e34781..612e25b 100644
--- a/vendor/github.com/hashicorp/terraform/config/loader.go
+++ b/vendor/github.com/hashicorp/terraform/config/loader.go
@@ -135,21 +135,6 @@ func LoadDir(root string) (*Config, error) {
135 return result, nil 135 return result, nil
136} 136}
137 137
138// IsEmptyDir returns true if the directory given has no Terraform
139// configuration files.
140func IsEmptyDir(root string) (bool, error) {
141 if _, err := os.Stat(root); err != nil && os.IsNotExist(err) {
142 return true, nil
143 }
144
145 fs, os, err := dirFiles(root)
146 if err != nil {
147 return false, err
148 }
149
150 return len(fs) == 0 && len(os) == 0, nil
151}
152
153// Ext returns the Terraform configuration extension of the given 138// Ext returns the Terraform configuration extension of the given
154// path, or a blank string if it is an invalid function. 139// path, or a blank string if it is an invalid function.
155func ext(path string) string { 140func ext(path string) string {