visionmedia
45948e054d
Added better error messages for async and sync fs calls with paths
15 years ago
Andrew Johnston
9599607065
Added posix fsync and fdatasync to fs module
15 years ago
Ben Noordhuis
c6c77d535f
Support for fstat(2) through fs.fstat() and fs.fstatSync(). Added test cases, updated documentation.
15 years ago
Ryan Dahl
8e5b91c79b
Revert "Check for strings.h"
This reverts commit 032f651824
.
15 years ago
Ryan Dahl
032f651824
Check for strings.h
15 years ago
Ryan Dahl
ea37d98949
Implement writeSync for buffers
(Needs tests still)
15 years ago
Ryan Dahl
3202bce288
Implement fs.readSync for buffers
15 years ago
Ryan Dahl
d76091d7d1
Implement fs.read() for Buffers (again)
15 years ago
Ryan Dahl
7a9c81d2dc
Fix memory leak with fs.writeSync
15 years ago
Ryan Dahl
d13f518010
Revert changes to node_file.cc
Revert "Fix memory leak in fs.writeSync()"
This reverts commit 5457eae28c
.
Revert "Implement fs.read() for buffers"
This reverts commit 692f580a07
.
15 years ago
Ryan Dahl
5457eae28c
Fix memory leak in fs.writeSync()
15 years ago
Ryan Dahl
692f580a07
Implement fs.read() for buffers
15 years ago
Ryan Dahl
20372d2df3
Fix docs in node_file.cc
15 years ago
Ryan Dahl
c9e27b11c5
Unify ErrnoException creation
15 years ago
Ryan Dahl
4278f35e89
Add support for Buffer to fs.write
15 years ago
kriskowal
2b91f8d265
Fixed spurious suffixes on fs.readlink.
15 years ago
Rasmus Andersson
b57d946184
added fs.link, fs.symlink, fs.readlink
including sync versions and complete tests
15 years ago
Ryan Dahl
05ae932a0e
Implement fs.readdirSync()
15 years ago
Ryan Dahl
4c8889bba2
Revert "Add fs.readdirSync()"
Doesn't work on Linux.
This reverts commit 05d6da6c4a
.
15 years ago
isaacs
9acc8a686a
Expose fs.lstat
15 years ago
Micheil Smith
05d6da6c4a
Add fs.readdirSync()
15 years ago
Ryan Dahl
662fdfed37
fs.closeSync should return Undefined on success
15 years ago
Micheil Smith
bcc032e43a
Adding interface between node and libeio for Chmod.
15 years ago
Ryan Dahl
cd41e30bcc
Return chunk & bytes read for posix.readSync()
15 years ago
Ryan Dahl
76c1805c67
Add posix.truncate()
15 years ago
Ryan Dahl
987441283b
Callbacks from process.fs always start with error object
15 years ago
Ryan Dahl
3377a30fb8
Move cb_persist functions out of dns module
15 years ago
Ryan Dahl
4ddfd8aa42
Fix posix.statSync()
15 years ago
Ryan Dahl
45a806a066
Statically define symbols
~7% improvement in hello world HTTP response bench.
15 years ago
Ryan Dahl
3414eab2f3
Refactor node_file.cc to not use Promises.
At the same time implement synchronous wrappers of the POSIX functions.
These will be undocumented until we settle on an API. Works like this
// returns promise as before
posix.mkdir("test").addCallback(function () {
sys.puts("done");
});
// returns undefined, executed synchronously.
posix.mkdirSync("test");
sys.puts("done");
This refactoring is a step towards allowing promises to be implemented
purely in javascript.
15 years ago
choonkeat
44d5f212fe
Stat::Callback has 2 arguments for callback: current stat info and previous stat info
http://groups.google.com/group/nodejs/msg/f8e51a8e0c74bd85
15 years ago
Ryan Dahl
1cacb50f2b
Fix memory leak on fs.write()
Reported by onne@onnlucky.com .
15 years ago
Ryan Dahl
711774c1f0
Remove unreachable lines
15 years ago
Ryan Dahl
ae7c9909be
fix error from v8 upgrade
15 years ago
Ryan Dahl
a5df0f6a65
Prefix all source files with node_
15 years ago
Ryan Dahl
cfe5876350
Add v8 patch to fix mac x64 build.
http://codereview.chromium.org/284012
15 years ago
Connor Dunn
2dbd0d3806
Add node.fs.sendfile()
15 years ago
Ryan Dahl
602f9dbf3f
SetClassName on internal classes.
15 years ago
Ryan Dahl
8a5194b7cf
cpplint.js file.{cc,h}
15 years ago
Ryan Dahl
76f4962636
Bugfix: EIOPromise::Create was allocating two EIOPromise objects
This is because it would call the javascript initializer which executed
Promise::New, and then it would rewrap the handle. Instead I make an
explicit inheritance from EIOPromise to Promise.
This seems to fix a memory leak which was reported by Ray Morgan:
http://groups.google.com/group/nodejs/browse_thread/thread/e38949b1989da1d7
15 years ago
Ryan Dahl
663deb3828
delete[] instead of delete for arrays.
15 years ago
Ryan Dahl
b54fad9b3f
Bugfix: node.fs.write() was stack allocating buffer.
Since the buffer is passed to the thread pool it needs to be heap allocated.
Thanks to Jon Crosby and Tim Caswell for debugging this.
15 years ago
Ryan Dahl
0d1ec5fdbe
API: node.fs.read() takes a normal encoding parameter.
Removes node.UTF8, node.RAW, node.ASCII enum versions of the encodings.
node.fs.read() now supports "raws" encoding.
15 years ago
Ryan
241950c1df
Add isDirectory(), isFile(), isSocket(), ... methods to stats object.
Thanks to Felix Geisendörfer for the initial patch.
15 years ago
Ryan
21a1b045f5
Byte stream to V8 decoding and encoding.
This does not (should not) change behavior. Pulls those two functions
(encode/decode) out into node.cc.
15 years ago
Ryan
2f46540d30
Create NODE_UNIXTIME macros
15 years ago
Ryan
3736bf9f49
Add node.fs.mkdir()
15 years ago
Ryan
9b3e2ae192
Add node.fs.readdir()
15 years ago
Ryan
747d6723aa
Clean up eio wrappers. Create EIOPromise.
15 years ago
Ryan
fbf65b58f9
Use Error exceptions where possible in net.cc and file.cc
15 years ago