mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Ensure Regex directories are unescaped
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user