Skip to content

Commit 2d0ab43

Browse files
mlossmloss
authored andcommitted
Fix for drive roots not being handled properly
1 parent e269362 commit 2d0ab43

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Snaffler/Config.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,12 @@ private static Options ParseImpl(string[] args)
305305
if (dirTargetArg.Parsed)
306306
{
307307
parsedConfig.ShareFinderEnabled = false;
308-
Console.WriteLine(dirTargetArg.Value);
309-
string pathTarget = dirTargetArg.Value.TrimEnd('\\');
308+
//Console.WriteLine(dirTargetArg.Value);
309+
string pathTarget = dirTargetArg.Value;
310+
if (dirTargetArg.Value.Length > 4)
311+
{
312+
pathTarget = dirTargetArg.Value.TrimEnd('\\');
313+
}
310314
parsedConfig.PathTargets.Add(pathTarget);
311315
Console.WriteLine(parsedConfig.PathTargets[0]);
312316
Mq.Degub("Disabled finding shares.");

0 commit comments

Comments
 (0)