revcopyfile: preserve file modification date/time
Christopher Mitchell
chrism at lumin.us
Fri Feb 20 19:57:17 EST 2004
I would almost suggest that saving an internal modification timestamp
and retrieving it as necessary might be easier than forcing any given
system to hack its own awareness of the last modification time of a
file. I would definitely be interested in hearing how to set Windows
mod dates though if it is possible.
Yours,
Chris
On Feb 20, 2004, at 5:26 PM, Rob Cozens wrote:
>> What is the best way to preserve file modification date/time when
>> copied
>> to a Windows 2000 server?
>
> Hi James,
>
> The detailed version of the files function returns, among other
> things, the modification dates for each file in the defaultFolder. So
> one needs to:
>
> A. Save the defaultFolder if it needs restoration
> B Set the defaultFolder to the folder containing the file
> C. Get the detailed files
> D. Parse the list to find the line for the file*
> E. Get the date as item 5 of that line
> F. Restore original defaultFolder, if necessary
>
> *Note in step D that the file's name is returned URL-encoded.
>
> Now you have the modification date. How you get the Windows server to
> retain or reset that date is beyond my scope of experience.
> --
>
> Rob Cozens
> CCW, Serendipity Software Company
> http://www.oenolog.net/who.htm
>
> "And I, which was two fooles, do so grow three;
> Who are a little wise, the best fooles bee."
>
> from "The Triple Foole" by John Donne (1572-1631)
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list