improved zip file

This commit is contained in:
Anton Martynenko
2025-11-20 12:32:56 +01:00
parent bc7998eaf7
commit bf2030e3c6
2 changed files with 13 additions and 7 deletions
@@ -718,12 +718,13 @@ public class RouteProcessingService : BackgroundService
if (fullPath.StartsWith(normalizedBasePath, StringComparison.OrdinalIgnoreCase))
{
entryName = fullPath.Substring(normalizedBasePath.Length + 1);
entryName = entryName.Replace(Path.DirectorySeparatorChar, '/');
var relativePath = fullPath.Substring(normalizedBasePath.Length + 1);
relativePath = relativePath.Replace(Path.DirectorySeparatorChar, '/');
entryName = "tiles/" + relativePath;
}
else
{
entryName = Path.GetFileName(tile.FilePath);
entryName = "tiles/" + Path.GetFileName(tile.FilePath);
}
zipArchive.CreateEntryFromFile(tile.FilePath, entryName, CompressionLevel.Optimal);