I think a simple FTP function should be achievable. I wouldn’t bother building in user functions like in a full blown FTP client. The user just needs to press the publish button and have their site placed on their server in the same structure as in the design applet. Once the button is pressed behind the scenes you might do a simple file compare of the local and remote version.
While filelist()
If local.file.name == remote.file.name {
If local.file.date is older than remote.file.date { rename remote.file.name * }
Upload local.file to Remote server.
}
else { Upload local.file to remote server }
Endwhile.
- Rename format could be: {original-filename}{bk}{version number}.{extension}
For other functions then users can use a full blown client like filezilla.