diff --git a/Snaffler/Config.cs b/Snaffler/Config.cs index 0366800..ea836d7 100644 --- a/Snaffler/Config.cs +++ b/Snaffler/Config.cs @@ -305,8 +305,12 @@ private static Options ParseImpl(string[] args) if (dirTargetArg.Parsed) { parsedConfig.ShareFinderEnabled = false; - Console.WriteLine(dirTargetArg.Value); - string pathTarget = dirTargetArg.Value.TrimEnd('\\'); + //Console.WriteLine(dirTargetArg.Value); + string pathTarget = dirTargetArg.Value; + if (dirTargetArg.Value.Length > 4) + { + pathTarget = dirTargetArg.Value.TrimEnd('\\'); + } parsedConfig.PathTargets.Add(pathTarget); Console.WriteLine(parsedConfig.PathTargets[0]); Mq.Degub("Disabled finding shares.");