Re: [racket-users] copy-file does not preserve file attributes on linux version of Racket...

2021-05-11 Thread Matthew Flatt
At Mon, 10 May 2021 17:16:53 -0700 (PDT), Don Green wrote:
> From Racket doc: "File permissions are transferred from src to dest; on 
> Windows, the modification time of src is also transferred to dest."
> 
> Is the above line meant to imply that a unix/linux version of Racket will 
> NOT preserve file attributes using copy-file?

Yes, that's right.

The intent is to mirror the most common convention for file copies on
each platform. On Unix, `cp` sets the copied file's timestamp to the
current time. On Windows, `copy` gives the copy the original file's
timestamp. (These conventions are also reflected by the system APIs
that racket uses.)


Matthew

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/20210511051842.d4%40sirmail.smtps.cs.utah.edu.


Re: [racket-users] copy-file does not preserve file attributes on linux version of Racket...

2021-05-10 Thread George Neuner



On 5/10/2021 8:16 PM, Don Green wrote:
From Racket doc: "File permissions are transferred from src to dest; 
on Windows, the modification time of src is also transferred to dest."


Is the above line meant to imply that a unix/linux version of Racket 
will NOT preserve file attributes using copy-file?


I don't know the answer to your question re: Racket's copy-file, but I 
would point out that in the OS the create, modify, and access times for 
files all are maintained separately.  A program (with sufficient rights) 
can change them independently.


--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/6ae995ed-58fc-38cf-608e-0e5ba7616bc6%40comcast.net.


[racket-users] copy-file does not preserve file attributes on linux version of Racket...

2021-05-10 Thread Don Green
>From Racket doc: "File permissions are transferred from src to dest; on 
Windows, the modification time of src is also transferred to dest."

Is the above line meant to imply that a unix/linux version of Racket will 
NOT preserve file attributes using copy-file?

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/563b1c16-ec16-4b0f-86d8-a26a937e02abn%40googlegroups.com.