how to ftp a file and preserve the old datetime?

how to ftp a file and preserve the old datetime?

Post by Raymond L » Tue, 23 Nov 1999 04:00:00



Hello,
    I want to ftp many files to a Linux Server. However, I also want to
preserve the files' datetime so that the file will have the last write
time as those in the ftp client (which is a Windows NT). Can I do this?

    Or will there be a more suitable newsgroup to ask this ftp question?

    Thanks in advance for your help!

    Yours,
    Raymond Li

 
 
 

how to ftp a file and preserve the old datetime?

Post by LabSo » Tue, 23 Nov 1999 04:00:00



>Hello,
>    I want to ftp many files to a Linux Server. However, I also want to
>preserve the files' datetime so that the file will have the last write
>time as those in the ftp client (which is a Windows NT). Can I do this?

>    Or will there be a more suitable newsgroup to ask this ftp question?

>    Thanks in advance for your help!

>    Yours,
>    Raymond Li

I believe this will be dependent upong the ftp client you use. For the
Windows platform, the latest version of WS_FTP LE (the freeware edition)
allows you to preserve original file dates. I'm sure there are many other
clients which do the same.

 
 
 

how to ftp a file and preserve the old datetime?

Post by Dave Bro » Wed, 24 Nov 1999 04:00:00



>Hello,
>    I want to ftp many files to a Linux Server. However, I also want to
>preserve the files' datetime so that the file will have the last write
>time as those in the ftp client (which is a Windows NT). Can I do this?

>    Or will there be a more suitable newsgroup to ask this ftp question?

If you use midnight commander (mc) to do your ftp's, one of the options
is to "preserve attributes" which include date and ownership.  (Does
recursive ftp's, too.)

--
Dave Brown   Austin, TX

 
 
 

how to ftp a file and preserve the old datetime?

Post by Raymond L » Wed, 24 Nov 1999 04:00:00




> >Hello,
> >    I want to ftp many files to a Linux Server. However, I also want to
> >preserve the files' datetime so that the file will have the last write
> >time as those in the ftp client (which is a Windows NT). Can I do this?

> >    Or will there be a more suitable newsgroup to ask this ftp question?

> >    Thanks in advance for your help!

> >    Yours,
> >    Raymond Li

> I believe this will be dependent upong the ftp client you use. For the
> Windows platform, the latest version of WS_FTP LE (the freeware edition)
> allows you to preserve original file dates. I'm sure there are many other
> clients which do the same.

That's great! But how about if I want to do it again in my code? Are there
any api/function call that can do the same- preserve the datetime?

    Yours,
    Raymond Li