title: How to setup a destination path for a custom yeoman generator files?
body: <p>I'm building a custom yeoman generator, so when it's time to create files they're created one directory above my current location, or at <code>..</code>, so for example if I run:</p>
  
  <pre><code>yo koala
  </code></pre>
  
  <p>From <code>/home/diegoaguilar/koala</code> the files will be created at <code>/home/diegoaguilar</code>. How am I supposed to tell the path where the generator should copy files? I really thought that would be <code>process.cwd()</code> or simply where yeoman generator is being ran from.</p>
  
  <p>This is the code I got for files generation:</p>
  
  <pre><code>  writing: {
      app: function () {
        this.fs.copyTpl(
          this.templatePath('_package.json'),
          this.destinationPath('package.json'),
          {appname: this.appname}
        );
        this.fs.copy(
          this.templatePath('_bower.json'),
          this.destinationPath('bower.json')
        );
      },
  
      projectfiles: function () {
        this.fs.copy(
          this.templatePath('editorconfig'),
          this.destinationPath('.editorconfig')
        );
        this.fs.copy(
          this.templatePath('jshintrc'),
          this.destinationPath('.jshintrc')
        );
      }
    },
  </code></pre>