in_tail: Implement a full wildcard support for Windows (#1906)
in_tail: Implement a full wildcard support for Windows (#1906)

* in_tail: implement nested wildcard expansion for Windows

In 55e27e00, I wrote:

> The biggest limitation right now is that we can't use a wildcard
> in the directory path (like 'C:\*\test.log').

This commit resolves the issue, by implementing glob-like path expansion
using a recursive call of Win32 API.

Signed-off-by: Fujimoto Seiji <ef879192bb1e41d519c82cf76440dc8e9a530806@clear-code.com>

* in_tail: introduce tail_do_scan() to API functions

This actually migrates the path scanning functions to use the new
wildcard-compatible path walker.

With this patch applied, configurations like below:

    [INPUT]
      Nat lme tail
      Tag  app.log
      Path C:\myapp\*\*.log

... should just work fine.

Signed-off-by: Fujimoto Seiji <ef879192bb1e41d519c82cf76440dc8e9a530806@clear-code.com>

nokute78/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit