Skip to content

2.0.0

Compare
Choose a tag to compare
@rameel rameel released this 15 Jul 22:26
· 110 commits to main since this release
ab5233a
  • Added the ability to retrieve a list of files and directories based on a specified glob pattern.

BREAKING CHANGE

To improve code readability and adherence to .NET conventions, the order of parameters in the IsMatch method has been changed.
The path parameter is now first, followed by the pattern parameter.

New signature

public static bool IsMatch(string path, string pattern, MatchFlags flags = MatchFlags.Auto)

Reasons for the change:

  • Consistency with .NET methods: The primary object of an action is typically the first parameter.
    Here, path is the primary object, and pattern is the secondary.
  • Alignment with common APIs: This order matches other .NET methods like Regex.IsMatch(string input, string pattern).
  • Flexibility for future expansions: Having the most commonly varied parameter (pattern) second makes it easier to create intuitive method overloads in the future.
  • Early stage of development: Since the library is newly released, we've made this change to ensure consistency from the start.