vox-client/vox-client.js
function prepareProfileDir(profilesDir, nick) {
  var nick = nick || '.tmp';
  // Just in case `nick` has any funny business...
  nick = nick.replace(/[^\w\d.]/g, '-').replace('..', '-');
  var profileDir = path.join(profilesDir, util.format('vox-%s', nick));
  debug('Ensuring directory at %s', profileDir);
  mkdirp.sync(profileDir, 0700);
  return profileDir;
}
function prepareProfileDir(profilesDir, nick) {
  var nick = nick || '.tmp';
  // Just in case `nick` has any funny business...
  nick = nick.replace(/[^\w\d.]/g, '-').replace('..', '-');
  var profileDir = path.join(profilesDir, util.format('vox-%s', nick));
  debug('Ensuring directory at %s', profileDir);
  mkdirp.sync(profileDir, 0700);
  return profileDir;
}
function prepareProfileDir ( profilesDir , nick ) { var nick = nick || '.tmp' ; // Just in case `nick` has any funny business... nick = nick . replace ( / [^\w\d.] / g , '-' ) . replace ( '..' , '-' ) ; var profileDir = path . join ( profilesDir , util . format ( 'vox-%s' , nick ) ) ; debug ( 'Ensuring directory at %s' , profileDir ) ; mkdirp . sync ( profileDir , 0700 ) ; return profileDir ; }
Ensures that profilesDir exists and formats an appropriate name for the
profile directory.

@return {String} DB file path.
Ensures that profilesDir exists and formats an appropriate name for the profile directory .