Results 1 to 4 of 4

Thread: FTP Problem. Don't bother replying because you don't know the answer! :)

  1. #1

    Thread Starter
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    When a file is copied from one dir to another using windows explorer, all the file attributes of the new file remain the same as those of the original file.

    BUT

    If I FTP a file from one dir to another, the new file has the current time as a time stamp.

    My question which you can't answer is:

    How can I retain the original file date-time?
    Mark
    -------------------

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    dunno the answer but does the file update it's time stamp when you upload it?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    Files (order messages) are FTPed to my server.
    A java exe monitors the directory and processes the files entering details such as file date into a database.

    A Web server(Netscape Enterprise Server) offers the lists the messages when a user logs in. The display includes the file date time but this is the date/time the file arrived on the server rather than the original file creation date.

    If for some reason the files get held up between being created and FTPed the list on the web page will display a misleading date/time.

    I want the original time stamp to be retained.

    Mark
    -------------------

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986

    If for some reason the files get held up between being created and FTPed the list on the web page will display a misleading date/time.

    The filetime is the time the file is created... When you upload a file, it's not really sent, but created on the remote server... the remote machine opens a file, receives data and put it in the file, that's why it's date is the date you sent the file..
    Maybe you could let the java exe change overwrite the local time with the actual time of the file sent. You can do that by sending a txt file with all the files and their dates (you could let a VB prog do that before uploading)

    think that's the main idea, let me know if you think it's usefull, I might be able to help you.
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width