summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
Diffstat (limited to 'libpod')
-rw-r--r--libpod/util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/util.go b/libpod/util.go
index de5c3ff31..1a033a940 100644
--- a/libpod/util.go
+++ b/libpod/util.go
@@ -24,7 +24,7 @@ const (
func WriteFile(content string, path string) error {
baseDir := filepath.Dir(path)
if baseDir != "" {
- if _, err := os.Stat(path); err != nil {
+ if _, err := os.Stat(baseDir); err != nil {
return err
}
}