fix(fs/outputStream): always make path first param
Introduced by 7a1377119
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user