From 382f8a2d027d683791938e736f4936dc437bc4d1 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 31 Mar 2016 12:27:30 -0700 Subject: [PATCH] Make Import search through subdirectories This is useful if the user doesn't want to remove files from their current structure (e.g. TOSEC). --- DATabase/DATabase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DATabase/DATabase.cs b/DATabase/DATabase.cs index ff8ec557..b94cb513 100644 --- a/DATabase/DATabase.cs +++ b/DATabase/DATabase.cs @@ -362,7 +362,7 @@ or 'b' to go back to the previous menu:"); // Check to see if the second argument is a directory that exists else if (filename != "" && Directory.Exists(filename)) { - foreach (string file in Directory.GetFiles(filename, "*", SearchOption.TopDirectoryOnly)) + foreach (string file in Directory.GetFiles(filename, "*", SearchOption.AllDirectories)) { logger.Log("Beginning import of " + file); Import imp = new Import(file, _connectionString, logger);