[plt-scheme] Addition of #:exists keyword to copy-file et. al.?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Nov 21 09:05:27 EST 2007

At Tue, 20 Nov 2007 00:41:25 -0800, John Clements wrote:
> I find the #:exists keyword hard to remember, but I think it would be  
> easier to recall if it were used more widely.  Is there any chance  
> that, say, "copy-file" might be augmented (er, so to speak) to accept  
> the #:exists keyword, or would this make for poor cross-platform file  
> system cleanliness? This would also address the irritating need to  
> check for a file's existence before copying it in the case that  
> overwriting is desired. It appears that 'rename-file-or-directory'  
> and 'make-file-or-directory-link' might also productively use this  
> keyword argument.

Yes, I agree.


Posted on the users mailing list.