lib/tasks/verify-file.js
function(destPath) {
    var exists, stats;
    var dirpath = path.dirname(destPath);
    try{
      stats = fs.lstatSync(dirpath);
      exists = stats.isDirectory();
    } catch(e) {
      this.createDestDir = dirpath;
    }
    return !!exists;
  }
function(destPath) {
    var exists, stats;
    var dirpath = path.dirname(destPath);
    try{
      stats = fs.lstatSync(dirpath);
      exists = stats.isDirectory();
    } catch(e) {
      this.createDestDir = dirpath;
    }
    return !!exists;
  }
function ( destPath ) { var exists , stats ; var dirpath = path . dirname ( destPath ) ; try { stats = fs . lstatSync ( dirpath ) ; exists = stats . isDirectory ( ) ; } catch ( e ) { this . createDestDir = dirpath ; } return ! ! exists ; }
determine if we need to create the destination directory
determine if we need to create the destination directory