fix(fs/_outputStream): validator should receive tmp path

This commit is contained in:
Julien Fontanet 2021-04-30 22:51:21 +02:00
parent 8bee0925d0
commit d41fbb9216

View File

@ -492,7 +492,7 @@ export default class RemoteHandlerAbstract {
try {
await fromCallback(pipeline, input, output)
if (validator !== undefined) {
await validator.call(this, path)
await validator.call(this, tmpPath)
}
await this.rename(tmpPath, path)
} catch (error) {