Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion IsoMaker/IsoMaker/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ private Dictionary<string, string> getFileList(DirectoryInfo folder, DirectoryIn
foreach (FileInfo file in folder.GetFiles())
{
string fileFullPath = file.FullName;
string fileOnIso = fileFullPath.TrimStart(home.FullName.ToCharArray());

// The code below might chop off too much of the string. I had this issue.
// string fileOnIso = fileFullPath.TrimStart(home.FullName.ToCharArray());

// This code simply delimits the string by the root directory path with a backslash. This works better.
string fileOnIso = fileFullPath.Split(home.FullName + '\\')[1];

output.Add(fileOnIso, file.FullName);
}

Expand Down