Normalize the filepath when retrieving fullpath

Fixes #4751
This commit is contained in:
rijkvanzanten
2021-04-14 17:53:55 -04:00
parent 0b54975f67
commit cc868ae60c
3 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ export class AzureBlobWebServicesStorage extends Storage {
* Prefixes the given filePath with the storage root location
*/
protected _fullPath(filePath: string) {
return path.join(this.$root, filePath);
return normalize(path.join(this.$root, filePath));
}
public async copy(src: string, dest: string): Promise<Response> {

View File

@@ -64,7 +64,7 @@ export class GoogleCloudStorage extends Storage {
* Prefixes the given filePath with the storage root location
*/
protected _fullPath(filePath: string) {
return path.join(this.$root, filePath);
return normalize(path.join(this.$root, filePath));
}
private _file(filePath: string): File {

View File

@@ -57,7 +57,7 @@ export class AmazonWebServicesS3Storage extends Storage {
* Prefixes the given filePath with the storage root location
*/
protected _fullPath(filePath: string) {
return path.join(this.$root, filePath);
return normalize(path.join(this.$root, filePath));
}
/**