mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Allow wildcarded paths for inputs
This commit is contained in:
@@ -519,6 +519,10 @@ namespace SabreTools.Library.Help
|
||||
if (!valid)
|
||||
valid = File.Exists(input) || Directory.Exists(input);
|
||||
|
||||
// If we're not valid at this point, we weant to check if the flag is a wildcarded input
|
||||
if (!valid)
|
||||
valid = input.Contains("*") || input.Contains("?");
|
||||
|
||||
return valid;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user