changeset 55184:9e01303c94ac

(archive-maybe-copy): If ARCHIVE includes leading directories, make sure they exist under archive-tmpdir.
author Eli Zaretskii <eliz@gnu.org>
date Tue, 27 Apr 2004 12:44:42 +0000
parents b4f51693f2db
children 72e94ca8d8d4
files lisp/arc-mode.el
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/arc-mode.el	Tue Apr 27 08:48:12 2004 +0000
+++ b/lisp/arc-mode.el	Tue Apr 27 12:44:42 2004 +0000
@@ -815,6 +815,14 @@
 	       (or (and archive-subfile-mode (aref archive-subfile-mode 0))
 		   archive)))
 	  (make-directory archive-tmpdir t)
+	  ;; If ARCHIVE includes leading directories, make sure they
+	  ;; exist under archive-tmpdir.
+	  (let ((arch-dir (file-name-directory archive)))
+	    (if arch-dir
+		(make-directory (concat
+				 (file-name-as-directory archive-tmpdir)
+				 arch-dir)
+				t)))
 	  (setq archive-local-name
 		(archive-unique-fname archive-name archive-tmpdir))
 	  (save-restriction