Skip to content

Commit

Permalink
truncate dir name to 32 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargaj committed Jan 11, 2025
1 parent 519645e commit 4e1c866
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Source/Dialogs/DownloadDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,12 @@ private async Task WatchDemo()
return;
}

var extractPath = Path.Combine(path, Path.GetFileNameWithoutExtension(localFileName));
var dirName = Path.GetFileNameWithoutExtension(localFileName);
if (dirName.Length > 32)
{
dirName = dirName.Substring(0, 32);
}
var extractPath = Path.Combine(path, dirName);
var unpacker = FindUnpacker(localFileName);
var extractSuccessful = false;
if (unpacker == null)
Expand Down

0 comments on commit 4e1c866

Please sign in to comment.