Node.js---Amazon-S3 icon indicating copy to clipboard operation
Node.js---Amazon-S3 copied to clipboard

fs.writeable has changed to fs.writable as of node v0.3.5

Open jtsao22 opened this issue 13 years ago • 0 comments

Hey Dallin,

I just wanted to let you know that in node v0.3.5 and later the streams now use the stream.writable boolean instead of the stream.writeable boolean (http://nodejs.org/docs/v0.3.5/api/streams.html#stream.writable).

Thus in s3.js @ line 308:

    if(!fileStream.writeable){

should be changed to:

    if(!fileStream.writable){

This should not be changed on versions of node before v0.3.5, so maybe there's a better way? Perhaps there's a way to check for the node version?

Thanks for the module btw.

Jason

jtsao22 avatar Aug 11 '11 22:08 jtsao22