From: Paul Lutus Date: 2006-11-15T04:55:06+09:00 Subject: Re: preserve mtime when using FTP? greg wrote: > I am using Net::FTP to copy files, but the file stats are not > preserved. In particular, I would like to preserve mtime (time of last > modification). > > There is an FTP mtime method that can get the mtime of the remote file. But FTP can't set the mtime on remote files, it can only retrieve it. > Is there any way to preserve or set mtime, or is there a different > protocol or library I should use? The FTP protocol doesn't do this, anywhere, on any platform, at all. Therefore Ruby FTP doesn't do it either. Have you considered using an ssh or sftp transaction instead? -- Paul Lutus http://www.arachnoid.com