Open ch-andrewrhyne opened 7 years ago
This seems to happen if I call end on a WriteStream that was created by createWriteStream:
end
createWriteStream
import { createWriteStream } from 'graceful-fs'; import mockFs from 'mock-fs'; mockFs({ '/chlogs/foobar': mockFs.directory({ mode: 755 }) }); const stream = createWriteStream('/chlogs/foobar', { flags: 'a' }); stream.write('hello world'); stream.end('');
I can reproduce this with both fs and graceful-fs in a mocha test
fs
graceful-fs
This seems to happen if I call
end
on a WriteStream that was created bycreateWriteStream
:I can reproduce this with both
fs
andgraceful-fs
in a mocha test