Updated the FileViewer so that it would move the nely found files into a folder going by the same name as the selected folder group.

This commit is contained in:
Admin
2020-12-06 23:12:49 -06:00
parent 21645be4ef
commit b82027c796
2 changed files with 2 additions and 2 deletions
Binary file not shown.
+2 -2
View File
@@ -54,8 +54,8 @@ namespace DataOrganizer
foreach(var file in files)
{
var path = file.ParentFolder.FullPath.Remove(0, folderGroup.Path.Length + 1);
var newFilePath = Path.Combine(profile.DefaultNewContentFolder, file.PathNoRoot);
var path = Path.Combine(folderGroup.Name, file.ParentFolder.FullPath.Remove(0, folderGroup.Path.Length + 1));
var newFilePath = Path.Combine(profile.DefaultNewContentFolder, folderGroup.Name, file.PathNoRoot);
Directory.CreateDirectory(Path.Combine(profile.DefaultNewContentFolder, path));
UpdateStatusStrip($"Moving {file.Name} to default location '{profile.DefaultNewContentFolder}'.");