Nodester and fs #292

Closed
shezard opened this Issue Feb 2, 2012 · 2 comments

Comments

Projects
None yet
3 participants
@shezard

shezard commented Feb 2, 2012

Are fs actions allowed under nodester ?

e.g :

var fs = require('fs'),
    app = require('express').createServer();

app.get('*', function(req, res){
  fs.createReadStream('index.html').pipe(res);
});

app.listen(14223);

result :

stream.js:99
      throw er; // Unhandled stream error in pipe.
      ^
Error: ENOENT, No such file or directory './index.html'

Process died with exit code 1. Restarting...
@contra

This comment has been minimized.

Show comment Hide comment
@contra

contra Feb 2, 2012

Contributor

Yep - you need to pass absolute paths though

Contributor

contra commented Feb 2, 2012

Yep - you need to pass absolute paths though

@contra contra closed this Feb 2, 2012

@nodester

This comment has been minimized.

Show comment Hide comment
@nodester

nodester Feb 2, 2012

Owner

Yes, you can read and write to your sandbox FS but you will need to create
a directory in your git repo and then target that directory for reads and
writes.

-Chris

On Thu, Feb 2, 2012 at 12:57 PM, damien fayol <
reply@reply.github.com

wrote:

Are fs actions allowed under nodester ?

e.g :

var fs = require('fs'),
   app = require('express').createServer();

app.get('*', function(req, res){
 fs.createReadStream('index.html').pipe(res);
});

app.listen(14223);

result :

stream.js:99
     throw er; // Unhandled stream error in pipe.
     ^
Error: ENOENT, No such file or directory './index.html'

Process died with exit code 1. Restarting...

Reply to this email directly or view it on GitHub:
#292

Owner

nodester commented Feb 2, 2012

Yes, you can read and write to your sandbox FS but you will need to create
a directory in your git repo and then target that directory for reads and
writes.

-Chris

On Thu, Feb 2, 2012 at 12:57 PM, damien fayol <
reply@reply.github.com

wrote:

Are fs actions allowed under nodester ?

e.g :

var fs = require('fs'),
   app = require('express').createServer();

app.get('*', function(req, res){
 fs.createReadStream('index.html').pipe(res);
});

app.listen(14223);

result :

stream.js:99
     throw er; // Unhandled stream error in pipe.
     ^
Error: ENOENT, No such file or directory './index.html'

Process died with exit code 1. Restarting...

Reply to this email directly or view it on GitHub:
#292

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment