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

Struggling with creating folders #35

Closed MathiasGronseth closed 9 years ago

MathiasGronseth commented 9 years ago

So I'm trying to move files from my local directory to my FTP-server, where the FTP has no dir-structure at the moment.

I've set {... dest:"./"}, files:[{ expand:true, src:["**"] }]

As far as I've understood it, lacking folder structure will be created automatically, but when I try this out, I get Error 553 Prohibited file name: css\style.css

Any help would be greatly appreciated

Robert-W commented 9 years ago

It should create directories for you if they are not already created but I will try your configuration a little later tonight and see what it produces. That error is not one I have seen very often, the only other time I heard of it was when someone was trying to push an .htaccess file to their server and there was server settings preventing hidden files from being pushed.

Robert-W commented 9 years ago

Ok so I just tried a similar configuration and things uploaded without any issue, Do you have any other server you can try the same configuration on and see if it works? Im wondering if it's something with that particular server.

MathiasGronseth commented 9 years ago

Tested it on another server where it seems to be working as intended. Guess the server provider I'm using are a bit restrictive. Thanks for the quick reply!

Robert-W commented 9 years ago

Ok, no problem.