useless directories are made on server root
hyunchulkwak opened this issue · 0 comments
hyunchulkwak commented
First, thanks for your great work. It really saves my time.
When i use ftpush, some directories named after what i uploaded (directories, sub directories) are made on my ftp server root.
Like below, if the 'src' directory is uploaded, i see 'somewhere_pkgname_\src' directory on the server root.
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
ftpush: {
build: {
auth: {
host: 'ftp.com',
port: 21,
authKey: 'key'
},
src: 'src',
dest: 'somewhere/<%= pkg.name %>',
simple: true
}
}
});
grunt.loadNpmTasks('grunt-contrib-ftpush');
grunt.registerTask('default', ['ftpush:build']);
};
It only happens when the simple option is set true and <%= pkg.name %> is used for destination, but i should set simple option true because i've met this issue #26. Also, I use <%= pkg.name %> to avoid editing every single Gruntfile.js of my multiple, similar structured projects.
It's not that annoying to delete those directories, but hopefully there's a way around.