;;; -*-Scheme-*-
;;;
-;;; $Id: dired.scm,v 1.137 1993/09/09 04:52:50 cph Exp $
+;;; $Id: dired.scm,v 1.138 1993/10/26 21:28:19 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-93 Massachusetts Institute of Technology
;;;
(lambda (to-file)
(let ((from (dired-current-pathname))
(to (->pathname to-file)))
+ (if (file-exists? to)
+ (editor-error "File already exists: " (->namestring to)))
(bind-condition-handler (list condition-type:file-error
condition-type:port-error)
(lambda (condition)
(lambda (to-file)
(let ((from (dired-current-pathname))
(to (->pathname to-file)))
+ (if (file-exists? to-file)
+ (editor-error "File already exists: " (->namestring to-file)))
(bind-condition-handler (list condition-type:file-error
condition-type:port-error)
(lambda (condition)