TechDocs/Publishers: Use path.normalize

This commit is contained in:
Himanshu Mishra
2021-02-18 21:59:02 +01:00
parent 6c36689039
commit 837ce612de
2 changed files with 2 additions and 0 deletions
@@ -149,6 +149,7 @@ export class AwsS3Publish implements PublisherBase {
.split(path.sep)
.join(path.posix.sep);
// The / delimiter is intentional since it represents the cloud storage and not the local file system.
const entityRootDir = `${entity.metadata.namespace}/${entity.kind}/${entity.metadata.name}`;
const destination = `${entityRootDir}/${relativeFilePathPosix}`; // S3 Bucket file relative path
@@ -118,6 +118,7 @@ export class GoogleGCSPublish implements PublisherBase {
.split(path.sep)
.join(path.posix.sep);
// The / delimiter is intentional since it represents the cloud storage and not the local file system.
const entityRootDir = `${entity.metadata.namespace}/${entity.kind}/${entity.metadata.name}`;
const destination = `${entityRootDir}/${relativeFilePathPosix}`; // GCS Bucket file relative path