lib/validator.js
function dir(val) {
  try {
    process.chdir(val);
  }catch(e) {
    throw new Error(
      util.format('Can\'t chdir to \'%s\': %s'), val, e.message);
  }
}
function dir(val) {
  try {
    process.chdir(val);
  }catch(e) {
    throw new Error(
      util.format('Can\'t chdir to \'%s\': %s'), val, e.message);
  }
}
function dir ( val ) { try { process . chdir ( val ) ; } catch ( e ) { throw new Error ( util . format ( 'Can\'t chdir to \'%s\': %s' ) , val , e . message ) ; } }
Validate a dir value.
Validate a dir value .