Robert-W / grunt-ftp-push

Deploy files to an FTP server as part of your Grunt workflow.
MIT License
39 stars 14 forks source link

Structure Remains #21

Closed emalherbi-zz closed 9 years ago

emalherbi-zz commented 9 years ago

Hey There!

I would like to copy the files from "docs/_site" to "www/bla", but when copy the structure remains.

Here is my code.

    /* ftp push */
    ftp_push: {
      your_target: {
        options: {
          username: "xxx",
          password: "bbb",
          host: "ftp.yyyy.com",
          dest: "/www/bla/",
          port: 21
        },
        files: [{
          expand: true,
          cwd: 'docs/_site',
          src: [ '**' ]
        }]
      }
    }

in ftp: www/bla/docs/_site/index.html

but it should be: www/bla/index.html

Robert-W commented 9 years ago

Hey @emalherbi, it should be doing that, can you verify that you are on the latest version (0.3.2)?

If you are and are still seeing this I will take a look as soon as I can. I am at an esri developer conference through March 13th so I may not have a chance to look into it til then.

emalherbi-zz commented 9 years ago

sorry man. I updated the package and now worked.

Robert-W commented 9 years ago

Awesome, great to hear.