mirror of
https://github.com/azaion/satellite-provider.git
synced 2026-04-22 09:06:38 +00:00
improved zip file
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user