directories, make sure they exist under archive-tmpdir.
+2004-04-27 Daniel M Coffman <coffmand@us.ibm.com> (tiny change)
+
+ * arc-mode.el (archive-maybe-copy): If ARCHIVE includes leading
+ directories, make sure they exist under archive-tmpdir.
+
2004-04-27 Juri Linkov <juri@jurta.org>
* help.el (view-emacs-news): With argument, display info for the
(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