I tried to change the directory using a normal cd command, but it says execvp(): No such file or directory.
These are the lines:
fs = require 'fs'
util = require 'util'
{spawn} = require 'child_process'
clientTest = (callback) ->
d = spawn 'cd', ['client']
d.stderr.on 'data', (data) ->
process.stderr.write data.toString()
d.stdout.on 'data', (data) ->
util.log data.toString()
d.on 'exit', (code) ->
callback?() if code is 0
I'm guessing I have to do something withe the filesystem?