Fixed a possible issue where a trailing slash could be added in the folder group's path.
This commit is contained in:
Binary file not shown.
@@ -170,6 +170,8 @@ namespace DataOrganizer
|
|||||||
|
|
||||||
private void InsertGroupName_Click(object sender, EventArgs e)
|
private void InsertGroupName_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
FolderGroupPathTextBox.Text = FolderGroupPathTextBox.Text.TrimEnd(new char[] { '\\' });
|
||||||
|
|
||||||
var dir = new DirectoryInfo(FolderGroupPathTextBox.Text);
|
var dir = new DirectoryInfo(FolderGroupPathTextBox.Text);
|
||||||
var groupName = dir.Name;
|
var groupName = dir.Name;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user