fix(fs/outputStream): always make path first param

Introduced by 7a1377119
This commit is contained in:
Julien Fontanet
2021-02-23 11:47:19 +01:00
parent a958fe86d7
commit ca5af2505c
2 changed files with 2 additions and 2 deletions

View File

@@ -214,7 +214,7 @@ export default class RemoteHandlerAbstract {
{ checksum = true, dirMode }: { checksum?: boolean, dirMode?: number } = {}
): Promise<void> {
path = normalizePath(path)
return this._outputStream(await input, normalizePath(path), {
return this._outputStream(normalizePath(path), await input, {
checksum,
dirMode,
})

View File

@@ -43,7 +43,7 @@ export default class S3Handler extends RemoteHandlerAbstract {
return { Bucket: this._bucket, Key: this._dir + file }
}
async _outputStream(input, path, { checksum }) {
async _outputStream(path, input, { checksum }) {
let inputStream = input
if (checksum) {
const checksumStream = createChecksumStream()