FileWatch.watchRecurse

Recursively add the path and all its subdirectories and files to be watched.

  1. AbsolutePath[] watchRecurse(Path root, uint events, bool delegate(string) pred)
    struct FileWatch
    watchRecurse
    (,,
    bool delegate
    (
    string
    )
    pred = toDelegate(&allFiles)
    )
  2. AbsolutePath[] watchRecurse(string root, uint events, bool delegate(string) pred)

Parameters

pred bool delegate
(
string
)

only those files and directories that pred returns true for are watched, by default every file/directory.

root Path

directory to watch together with its content and subdirectories.

events uint

events to watch for. See man inotify and core.sys.linux.sys.inotify.

Return Value

Type: AbsolutePath[]

paths that failed to be added.

Meta