From 622832a086a76c2927d249e026ef57cfe3072a9b Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 20 Apr 2016 02:31:08 -0700 Subject: [PATCH] More quote adding; remove unnecessary public var --- DATabase/Import.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/DATabase/Import.cs b/DATabase/Import.cs index ddbb38b3..74c5557a 100644 --- a/DATabase/Import.cs +++ b/DATabase/Import.cs @@ -47,12 +47,6 @@ namespace SabreTools private static string _redumpDatePattern = @"(\d{4})(\d{2})(\d{2}) (\d{2})-(\d{2})-(\d{2})"; private static string _tosecDatePattern = @"(\d{4})-(\d{2})-(\d{2})"; - // Public instance variables - public string FilePath - { - get { return _filepath; } - } - /// /// Initialize an Import object with the given information /// @@ -61,6 +55,9 @@ namespace SabreTools /// Logger object for file or console output public Import(string filepath, string connectionString, Logger logger) { + // Take care of quotes + filepath = filepath.Replace("\"", ""); + if (File.Exists(filepath)) { _filepath = filepath;