From b82027c7967d83a50658b837f4fa0b1964a3135c Mon Sep 17 00:00:00 2001 From: Admin Date: Sun, 6 Dec 2020 23:12:49 -0600 Subject: [PATCH] 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. --- .vs/DataOrganizer/v16/.suo | Bin 145920 -> 145920 bytes DataOrganizer/FileViewer.cs | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.vs/DataOrganizer/v16/.suo b/.vs/DataOrganizer/v16/.suo index 5a524a35c89f9cb539fcd5b0914112ead0326306..99fcc70521a748f68935d9a609a10a9c3359745d 100644 GIT binary patch delta 76 zcmZqp!qM=BV?z!TtHR@&ZDE@WnSL{~2DBAF4{I)D+g`}VxH@XO%zs86R$~SR28Qjr biHz^(3QB<3U@URKl7WFCVY}{s#>-X!9jO=C delta 76 zcmZqp!qM=BV?z!TD+7B*X6WWZrr*r07ql;34{a`F+g`}VxH?L(k^u&^4lH9}U@+XS bo5=Wn?sS<%Mjlpk1_lP+?YjRNFIxcs#xxfZ diff --git a/DataOrganizer/FileViewer.cs b/DataOrganizer/FileViewer.cs index 699186c..9ec7f00 100644 --- a/DataOrganizer/FileViewer.cs +++ b/DataOrganizer/FileViewer.cs @@ -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}'.");