[Feature, SabreTools] Add better valid checking, add stats to help

This commit is contained in:
Matt Nadareski
2017-02-02 13:33:41 -08:00
parent d08b52bb39
commit 84f5600a87
2 changed files with 50 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using SabreTools.Helper.Data;
@@ -358,6 +359,12 @@ namespace SabreTools.Helper.Help
valid = false;
}
// If we're not valid at this point, we want to check if this flag is a file or a folder
if (!valid)
{
valid = File.Exists(input) || Directory.Exists(input);
}
return valid;
}