       host: 'localhost'
       port: 21
       passive: no
+      type: 'ascii'
       dryrun: no
       ftpCommand: 'ftp'
       encoding: 'utf-8'
       ftpEncoding: 'utf-8'
+      mkdirs: no
 
     auth = grunt.file.readJSON('.ftppass')?[opts.authKey ? opts.host]
 

    if opts.dryrun
      grunt.log.subhead 'Dry-run mode, start display ftp script.'
      grunt.log.writeln cmds
      grunt.log.subhead 'End display ftp script.'
    else
      grunt.verbose.subhead 'Start display ftp script.'


    generateUpload dirs, files, f for f in @files
      
    if opts.mkdirs
      dirs = for i of dirs
        "mkdir \"#{ i }\""
    else
      dirs = []

    for arg in args
      switch arg
