Skip to content

Commit 9092e7f

Browse files
committed
Fix Destinationpath 2
1 parent 0a33d92 commit 9092e7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tooling/docs-assembler/Deploying/AwsS3SyncPlanStrategy.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ public async Task<SyncPlan> Plan(Cancel ctx = default)
3737
await Parallel.ForEachAsync(localObjects, ctx, async (localFile, token) =>
3838
{
3939
var relativePath = Path.GetRelativePath(context.OutputDirectory.FullName, localFile.FullName);
40-
40+
var destinationPath = relativePath.Replace('\\', '/');
4141
_logger.LogInformation("Checking {Path}", relativePath);
4242

43-
if (remoteObjects.TryGetValue(relativePath, out var remoteObject))
43+
if (remoteObjects.TryGetValue(destinationPath, out var remoteObject))
4444
{
4545
// Check if the ETag differs for updates
4646
var localETag = await CalculateS3ETag(localFile.FullName, token);
@@ -69,7 +69,7 @@ await Parallel.ForEachAsync(localObjects, ctx, async (localFile, token) =>
6969
var addRequest = new AddRequest
7070
{
7171
LocalPath = localFile.FullName,
72-
DestinationPath = relativePath.Replace('\\', '/')
72+
DestinationPath = destinationPath
7373
};
7474
addRequests.Add(addRequest);
7575
}

0 commit comments

Comments
 (0)