File API tweaks
authorTim Caswell <tim@creationix.com>
Wed, 17 Feb 2010 07:06:26 +0000 (01:06 -0600)
committerRyan Dahl <ry@tinyclouds.org>
Wed, 17 Feb 2010 07:55:53 +0000 (23:55 -0800)
commit6115df6338379f93de6b50e95694371821257d56
treefdfae868cb49a52f59a60a15f3b47a34bc4848eb
parentae85d9af97b4dae40e6b04addd46dd128099ddb7
File API tweaks

- Rename fs.cat to fs.readFile
- Move file.write to fs.writeFile
- Allow strings for the flag argument to fs.open
  ("r", "r+", "w", "w+", "a", "a+")
- Remove the unused 'File' module / class
doc/api.txt
lib/file.js
src/node.js
test/mjsunit/disabled/test-fs-sendfile.js
test/mjsunit/test-buffered-file.js [deleted file]
test/mjsunit/test-eio-race.js
test/mjsunit/test-eio-race2.js
test/mjsunit/test-file-read-noexist.js [moved from test/mjsunit/test-file-cat-noexist.js with 91% similarity]
test/mjsunit/test-fs-write.js
test/mjsunit/test-stat-handler.js
test/mjsunit/test-sync-fileread.js [moved from test/mjsunit/test-sync-cat.js with 65% similarity]