renaming file on upload?
cesarpachon opened this issue · comments
hi, if I do something like:
files: [
{expand: true, cwd: 'local/', src: ['myfile.htm'], dest: 'myfile.html'}
]
I got in the bucket a folder named "myfle.html" that contains the file "myfile.htm".
How can I force the expected behavior? (having a single "myfile.html")?
That's a good one indeed! I'm almost certain that this isn't possible right now. I can't see it happening for multiple files, but maybe for a single file there could be something. Your config looks about right (as you say, that'd be the expected behaviour), so we'd need to adapt the code to make it work like that.
I'll have a look but I'm currently AFK until Tuesday. If you want to have a go/dig a little in the code or even do a PR, you're most welcome!
👍