bra icon indicating copy to clipboard operation
bra copied to clipboard

doesn't detect changes in subdir?

Open Dieterbe opened this issue 4 years ago • 1 comments

Hello, maybe i'm missing something, but i would expect my config below to detect files getting created in subdirectories, but it doesn't. Note new directories may be created with unpredictable names so i can't put those in watch_dirs, but i would think watch_all = true does the trick.

[run]
init_cmds = [                      # Commands run in start
  ["/home/dieter/scripts/git-sync"]
]
watch_all = true                   # Watch all sub-directories
watch_dirs = []                    # Directories to watch
watch_exts = [""]                  # Extensions to watch - substr check matches everything
env_files = []                     # Load env vars from files
ignore = [".git"]                  # Directories to exclude from watching
ignore_files = []                  # Regexps for ignoring specific notifies
follow_symlinks = false            # Enable/disable following symbolic links of sub directories
build_delay = 1500                 # Minimal interval to Trigger build event
interrupt_timout = 15              # Time to wait until force kill
graceful_kill = false              # Wait for exit and before directly kill
cmds = [                           # Commands to run
  ["/home/dieter/scripts/git-sync"]
]

[sync]
#listen_addr = ":5050"
#remote_addr = ":5050"

Dieterbe avatar Nov 11 '21 22:11 Dieterbe

Yes, watch_all = true should do it, otherwise it's a bug.

unknwon avatar Nov 12 '21 13:11 unknwon