caddy/caddyconfig/caddyfile/testdata/glob
Y.Horie d6d7511699
httpcaddyfile: Warn on importing empty file; skip dotfiles (#5320)
* httpcaddyfile: Change the parse rules when empty file or dotfile with a glob.

* Fixes #5295
* Empty file should just log a warning, and result in no tokens.
* The last segment of the path is '*', it should skip any dotfiles.
* The last segment of the path is '.*', it should read all dotfiles in a dir.

* httpcaddyfile: Regard empty files as import files which include only white space.
2023-01-21 10:22:36 -07:00
..
.dotfile.txt httpcaddyfile: Warn on importing empty file; skip dotfiles (#5320) 2023-01-21 10:22:36 -07:00
import_test1.txt httpcaddyfile: Warn on importing empty file; skip dotfiles (#5320) 2023-01-21 10:22:36 -07:00