summaryrefslogtreecommitdiffhomepage
path: root/lib/eos/jao-borgmatic.el
diff options
context:
space:
mode:
Diffstat (limited to 'lib/eos/jao-borgmatic.el')
-rw-r--r--lib/eos/jao-borgmatic.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/eos/jao-borgmatic.el b/lib/eos/jao-borgmatic.el
index f5d800d..6be370e 100644
--- a/lib/eos/jao-borgmatic.el
+++ b/lib/eos/jao-borgmatic.el
@@ -1,6 +1,6 @@
;;; jao-borgmatic.el --- Simple access to borgmatic -*- lexical-binding: t; -*-
-;; Copyright (C) 2022 jao
+;; Copyright (C) 2022, 2026 jao
;; Author: jao <mail@jao.io>
;; Keywords: convenience
@@ -116,8 +116,11 @@
(when (and (eq (process-status proc) 'exit)
(y-or-n-p "Borg extraction finished, show?"))
(if (eq (process-exit-status proc) 0)
- (let ((d (file-name-directory (car paths))))
- (dired (expand-file-name d jao-borgmatic-extract-path)))
+ (let* ((d (file-name-directory (car paths)))
+ (p (expand-file-name d jao-borgmatic-extract-path)))
+ (if (file-exists-p p)
+ (dired p)
+ (message "%s is not in the archive" d)))
(pop-to-buffer jao-borgmatic--extract-output)))))
(defvar jao-borgmatic--extract-history nil)