greg wrote:

> Unless I am mistaken I don't think sftp will preserve the file
> metadata.  I don't know how ssh would either.  sftp and ftp use
>         File.open( local_path, "wb" ) { |f| f.write contents }

Not the sftp I'm thinking of. In any case, you can use ssh to force a reset
of the destination file state using data passed from the source. I think
this is how "rsync" does it.

-- 
Paul Lutus
http://www.arachnoid.com