Fixed a possible issue where a trailing slash could be added in the folder group's path.

This commit is contained in:
Admin
2020-11-11 12:12:57 -06:00
parent cb0737954a
commit 0af7111d08
2 changed files with 2 additions and 0 deletions
Binary file not shown.
+2
View File
@@ -170,6 +170,8 @@ namespace DataOrganizer
private void InsertGroupName_Click(object sender, EventArgs e)
{
FolderGroupPathTextBox.Text = FolderGroupPathTextBox.Text.TrimEnd(new char[] { '\\' });
var dir = new DirectoryInfo(FolderGroupPathTextBox.Text);
var groupName = dir.Name;