|
-
Oct 6th, 2000, 05:48 AM
#1
Thread Starter
Frenzied Member
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?
-
Oct 6th, 2000, 06:09 AM
#2
transcendental analytic
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.
-
Oct 6th, 2000, 06:30 AM
#3
Thread Starter
Frenzied Member
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.
-
Oct 6th, 2000, 08:54 AM
#4
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|