changeset 17272:5dd977f51652

(dired-copy-file): Handle file-date-error.
author Richard M. Stallman <rms@gnu.org>
date Tue, 01 Apr 1997 04:26:33 +0000
parents e34a30952e14
children 214a5cc55c56
files lisp/dired-aux.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired-aux.el	Tue Apr 01 04:25:04 1997 +0000
+++ b/lisp/dired-aux.el	Tue Apr 01 04:26:33 1997 +0000
@@ -949,7 +949,10 @@
 ;;;###autoload
 (defun dired-copy-file (from to ok-flag)
   (dired-handle-overwrite to)
-  (copy-file from to ok-flag dired-copy-preserve-time))
+  (condition-case ()
+      (copy-file from to ok-flag dired-copy-preserve-time)
+    (file-date-error (message "Can't set date")
+		     (sit-for 1))))
 
 ;;;###autoload
 (defun dired-rename-file (from to ok-flag)