Defaulting localFS to be recursive

currently it pre-indexes everything in the root. This behavior is undesirable out of the box, so it now looks recursively by default.

Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
quobix
2023-11-07 09:17:17 -05:00
parent d9c36c2d0d
commit 784954e208
8 changed files with 361 additions and 72 deletions

View File

@@ -114,7 +114,7 @@ func TestRolodexLocalFileSystem_BadPath(t *testing.T) {
cf.BasePath = "/NOWHERE"
cf.FileFilter = []string{"first.yaml", "second.yaml", "third.yaml"}
lDoc, err := CreateDocumentFromConfig(info, cf)
assert.Nil(t, lDoc)
assert.NotNil(t, lDoc)
assert.Error(t, err)
}