Remove trailing slashes when creating LZMAs
This commit is contained in:
parent
c1cc0c061d
commit
5931c7fb9a
|
|
@ -25,8 +25,9 @@ namespace RepoTasks
|
||||||
{
|
{
|
||||||
if (Directory.Exists(source))
|
if (Directory.Exists(source))
|
||||||
{
|
{
|
||||||
Log.LogMessage(MessageImportance.High, $"Adding directory: {source}");
|
var trimmedSource = source.TrimEnd(new []{ '\\', '/' });
|
||||||
archive.AddDirectory(source, progress);
|
Log.LogMessage(MessageImportance.High, $"Adding directory: {trimmedSource}");
|
||||||
|
archive.AddDirectory(trimmedSource, progress);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue