From 2d0ab434ebfb36e5b1837e876ade234f003bc04b Mon Sep 17 00:00:00 2001 From: mloss Date: Thu, 8 Aug 2024 00:58:46 +0000 Subject: [PATCH] Fix for drive roots not being handled properly --- Snaffler/Config.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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.");