mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Make Import search through subdirectories
This is useful if the user doesn't want to remove files from their current structure (e.g. TOSEC).
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user