diff options
Diffstat (limited to 'watcher.go')
| -rw-r--r-- | watcher.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -113,6 +113,13 @@ func syncCreate(srcPath, destPath, relPath string, manifest *Manifest, stack *Gi if err := watcher.Add(srcPath); err != nil { logErrorf("watch %s: %v", relPath, err) } + filepath.Walk(srcPath, func(path string, info os.FileInfo, err error) error { + if err != nil || !info.IsDir() || path == srcPath { + return nil + } + watcher.Add(path) + return nil + }) if dryRun { logInfo("[dry-run] would create dir: %s", relPath) return |
