Skip to main content
Sign in
Snippets Groups Projects
Commit 612476af authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Fix path combination

parent 6816be57
Branches Issue/2221-projectDateCreated
No related tags found
1 merge request!2Product/75 s3 zip metadata
......@@ -96,7 +96,7 @@ namespace Coscine.S3Zip
{
foreach (ZipArchiveEntry entry in archive.Entries)
{
var fileName = directoryInfo.FullName.EndsWith($"{Path.DirectorySeparatorChar}") ? $"{directoryInfo.FullName}{entry.FullName}" : directoryInfo.FullName + $"{directoryInfo.FullName}{Path.DirectorySeparatorChar}{entry.FullName}";
var fileName = Path.Combine(directoryInfo.FullName, entry.FullName);
if (!Directory.Exists(Path.GetDirectoryName(fileName)))
{
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment