You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I specify the pattern /var/log/*, the result is [ "some_file", "another_file", "some_dir" ].
Is there a way to match only [ "some_file", "another_file" ]? If I'm understanding correctly, this is not currently possible. If that is the case, would you be open to adding a new GlobOption that specifies whether the result should include only files?
For context, this library is being used in the OpenTelemetry Collector, primarily for finding log files.
The text was updated successfully, but these errors were encountered:
Is it possible to configure
Glob
in such a way that it will return matching files but not matching directories?For example, supposing that I have no knowledge of naming or structure, I just want to find all files immediately in the
/var/log
directory.If I specify the pattern
/var/log/*
, the result is[ "some_file", "another_file", "some_dir" ]
.Is there a way to match only
[ "some_file", "another_file" ]
? If I'm understanding correctly, this is not currently possible. If that is the case, would you be open to adding a newGlobOption
that specifies whether the result should include only files?For context, this library is being used in the OpenTelemetry Collector, primarily for finding log files.
The text was updated successfully, but these errors were encountered: