Isn't this something that would best be configured in your FTP daemon ? I know some *nix daemons can be configured to preserve things like access permissions and original timestamp of the file. It is up to the client to use the correct servercommands to do this.