mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Forgot to assume directories don't exist
This commit is contained in:
@@ -58,6 +58,12 @@ namespace MPF.Processors
|
||||
/// <param name="baseDirectory">Base directory to check in</param>
|
||||
public override bool Exists(string baseDirectory)
|
||||
{
|
||||
// If the base directory is invalid
|
||||
if (string.IsNullOrEmpty(baseDirectory))
|
||||
return false;
|
||||
if (!Directory.Exists(baseDirectory))
|
||||
return false;
|
||||
|
||||
foreach (string filename in Filenames)
|
||||
{
|
||||
// Check for invalid filenames
|
||||
|
||||
Reference in New Issue
Block a user