Ensure Regex directories are unescaped

This commit is contained in:
Matt Nadareski
2024-10-16 02:31:11 -04:00
parent dd9e527592
commit f7f6ae1eee
2 changed files with 2 additions and 1 deletions

View File

@@ -17,6 +17,7 @@
- Ensure that the full base path is being used
- Ensure consistency in output file path checking
- Use new output file logic in processors
- Ensure Regex directories are unescaped
### 3.2.2 (2024-09-24)

View File

@@ -48,7 +48,7 @@ namespace MPF.Processors
public override bool Exists()
{
// Get the base directory for the first path
string baseDirectory = Path.GetDirectoryName(Filenames[0]) ?? string.Empty;
string baseDirectory = Path.GetDirectoryName(Regex.Unescape(Filenames[0])) ?? string.Empty;
// Get list of all files in directory
var directoryFiles = Directory.GetFiles(baseDirectory);