19 Commits
Author SHA1 Message Date
Ryan ed283dc280 Fix bug: catting non-existent files 2009-06-01 12:56:28 +02:00
Ryan b260a9108b Add errno constants. Move all constants to node.constants namespace. 2009-05-26 19:48:49 +02:00
Ryan e8f177aa2d Clean up outgoing encoding API. Generally: send(chunk, encoding). 2009-05-26 17:48:59 +02:00
Ryan 2fe090b7f6 Add node.fs prefix to some constants. oops. 2009-05-26 03:37:18 +02:00
Ryan d1b0ce6d37 Large refactor of file code.
All the c++ code is now reduced to simple wrappers. The node.fs.File object
is defined entirely in javascript now. As is the actionQueue methods.

This makes the boundaries much cleaner. There is still some thought that
needs to go into how exactly the API should behave but this simplification
is a first step.
2009-05-26 03:30:51 +02:00
Ryan 5c2389fada Remove error codes from file on_completion callbacks. Use file.onError.
The error codes still remain for the two general file system operations:
rename and stat.

Additionally I've removed the actionQueue for file system operations. They
are sent directly into the thread pool.
2009-05-25 13:17:35 +02:00
Ryan 58c13e5192 Namespace File stuff in node.fs 2009-05-21 12:49:41 +02:00
Ryan 6244f77822 Beginnings of file i/o docs. Finish up timers. 2009-05-21 12:33:57 +02:00
Ryan de6036669d Add p() like in Ruby. 2009-05-14 18:37:53 +02:00
Ryan 43531093a3 don't die on EPIPE 2009-05-07 16:32:36 +02:00
Ryan ba17940551 Add accessor File#encoding 2009-05-07 16:15:07 +02:00
Ryan 8a8e9df72e wasn't sending pos arg for puts() 2009-04-23 14:22:57 +02:00
Ryan 0b1e3240be add position arguments to File#read and File#write 2009-04-23 12:10:57 +02:00
Ryan c2decd720f add File.cat 2009-04-20 02:54:36 +02:00
Ryan e7dd20dc6e add File.stat File.exists File.strerror 2009-04-18 10:58:41 +02:00
Ryan 5207226da3 fix a bug with eio polling. 2009-04-18 02:01:23 +02:00
Ryan dd691decd2 file system methods to be queued. 2009-04-17 18:54:29 +02:00
Ryan c8e20fbf81 add file.read only. raw encoding right now. 2009-04-16 21:05:41 +02:00
Ryan 12d31dd0b7 file operations are queued. 2009-04-16 20:09:55 +02:00