Skip to content

document wildcard usage in filename prefix#13

Open
mimir-d wants to merge 1 commit intobinarypatrick:mainfrom
mimir-d:fea/file_wildcard
Open

document wildcard usage in filename prefix#13
mimir-d wants to merge 1 commit intobinarypatrick:mainfrom
mimir-d:fea/file_wildcard

Conversation

@mimir-d
Copy link

@mimir-d mimir-d commented Mar 12, 2026

  • I was looking to match more than a static prefix (with --prefix), like a filename regex.
  • going through the code, gets me to Directory.GetFiles(options.Path!, searchPattern, fileEnumerationOptions)
  • the dotnet docs for searchPattern say The search string to match against the names of subdirectories in path. This parameter can contain a combination of valid literal and wildcard characters, but it doesn't support regular expressions.
  • it looks like the prefix and suffix strings are passed as is, so they actually accept wildcards (but no regex, which is sufficient)

Added help string to specify this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant