HTML Export (on which I am now a co-maintainer, and also by the way which only saves files locally so isn't the same functionality) has a function to copy over all the css from the drupal sites from the themes and modules and also automatically takes care of any stray pointing links. I think this would be a good feature to incorporate as an optional checkbox on the publish to ftp form. That way you could either export based on your current site or you could set your HTML in the admin settings.

Comments

coderintherye’s picture

Version: 6.x-1.x-dev » 5.x-1.x-dev
Status: Active » Needs review

This feature has been added to the latest dev release. However, it is still in need of some testing and I need to figure out a way to cut down on the amount of time it takes to get all the files copied over, otherwise a php timeout error can occur. Currently, this module won't copy over the sites folder, but it will copy over the js and css from everything else. I think one solution will be zipping all the files up and then putting the zip file on the server and unzipping using a system() function, but this seems like it could be a potential security issue if done that way.

coderintherye’s picture

Revisting this, it doesn't seem that zipping is a viable solution either, unless I make the stipulation that you will have to manually unzip on your target the server. The reason is that although php 5.2 has zipping functionality, there isn't any way to ensure that the target ftp server will be able to unzip the files (unless perhaps adding a zip program along with any zipped files, but that would create even more overhead...)

coderintherye’s picture

Version: 5.x-1.x-dev » 6.x-2.x-dev
Status: Needs review » Fixed

Fixed in 6.x-2.x release

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.