Ryan
116f4dea05
lint
2009-08-26 22:14:45 +02:00
Ryan
82cb1b5acb
API: Remove buffered file object (node.File)
...
With the addition of non-libeio stdio (17c6a67f15 )
this class is no longer being used internally. It has proved buggy and isn't
full-featured enough to be very useful. Since it's implemented entirely in
javascript it will be easy for someone to extra into their own library if
needed.
2009-08-25 01:18:44 +02:00
Ryan
17c6a67f15
Introduce node.stdio
...
Remove old stdout, stderr, stdin objects.
2009-08-24 21:20:26 +02:00
Abe Fettig
53b3d6be35
Bugfix: stdin fd (0) being ignored by node.File.
...
In the case of stdin options.fd is 0, which is considered false, therefore fd
gets set to null intead of 0.
http://groups.google.com/group/nodejs/msg/80849f6aa0b0eaa0
2009-08-19 12:58:02 +02:00
Ryan
4f46c47773
node.fs.File was not passing args to promise callbacks.
...
Reported by Jacob Rus.
2009-07-31 19:48:19 +02:00
Ryan
b1588e78d9
Fix utf8 scripts, add test. Thanks Urban.
2009-07-20 21:22:19 +02:00
Ryan
e8a5d3d311
remove the callback from node.cat, node.fs.cat
2009-07-20 21:09:37 +02:00
Ryan
e7ad8ab4b0
Clean up some of the event handling code
2009-06-29 14:11:01 +02:00
Ryan
65324866bc
Implement Promises for file i/o
2009-06-28 19:08:27 +02:00
Ryan
2b557c467f
Namespace trimming: remove node.constants
2009-06-18 14:58:17 +02:00
Ryan
7cce31d4e4
Add global print() function.
2009-06-15 16:57:10 +02:00
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