aboutsummaryrefslogtreecommitdiffstats
path: root/watcher.go
diff options
context:
space:
mode:
Diffstat (limited to 'watcher.go')
-rw-r--r--watcher.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/watcher.go b/watcher.go
index 68a1a1b..14cc584 100644
--- a/watcher.go
+++ b/watcher.go
@@ -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