Commit Graph

4 Commits

Author SHA1 Message Date
Guangcong Luo
3f1082a10a Fix bug in fs.js 2017-07-10 00:39:20 +09:00
urkerab
5a17c6ca8f Fix order of old and new path when renaming (#3695) 2017-06-26 00:52:52 -07:00
Konrad Borowski
d083317cb9 Make createAppendStream actually work 2017-06-25 10:41:23 +02:00
Guangcong Luo
0143ae28dd Replace fs module (#3686)
The new FS module is an abstraction layer over the built-in fs module.

The main reason it exists is because I need an abstraction layer I can
disable writing from. But that'll be in another commit.

Currently, mine is better because:
 - paths are always relative to PS's base directory
 - Promises (seriously wtf Node Core what are you thinking)
 - PS-style API: FS("foo.txt").write("bar") for easier argument order
 - mkdirp

This also increases the minimum supported Node version from v6.0 to
v7.7, because we now use async/await. Sorry for the inconvenience!

This also drops the mock-fs-require-fix dependency

mock-fs-require-fix was always kind of a huge hack. It's no longer
necessary, with an FS API that does everything it used to.

This removes a lot of other hacks from test/main.js, which is nice.
2017-06-24 13:42:54 -07:00