lib/tasks/verify-file.js
function(destPath) {
    this.checkDestDir(destPath);
    var exists = existsSync(destPath);
    // we warn if
    // if (exists) {
    //   this.ui.writeLine('The destination path: ' + destPath + ' already exists. Cannot overrwrite.', 'WARNING');
    // }

    return {
      destExists: exists,
      destDir: this.createDestDir
    };
  }
function(destPath) {
    this.checkDestDir(destPath);
    var exists = existsSync(destPath);
    // we warn if
    // if (exists) {
    //   this.ui.writeLine('The destination path: ' + destPath + ' already exists. Cannot overrwrite.', 'WARNING');
    // }

    return {
      destExists: exists,
      destDir: this.createDestDir
    };
  }
function ( destPath ) { this . checkDestDir ( destPath ) ; var exists = existsSync ( destPath ) ; // we warn if // if (exists) { //   this.ui.writeLine('The destination path: ' + destPath + ' already exists. Cannot overrwrite.', 'WARNING'); // } return { destExists : exists , destDir : this . createDestDir } ; }
determine if the file already exists and will be overwritten
determine if the file already exists and will be overwritten