emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/kiwix a90d6db 6/7: replace file-accessible-directory-p


From: Stefan Monnier
Subject: [elpa] externals/kiwix a90d6db 6/7: replace file-accessible-directory-p function
Date: Mon, 28 Dec 2020 13:56:17 -0500 (EST)

branch: externals/kiwix
commit a90d6db274aed23d92b794533be37360b059321c
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>

    replace file-accessible-directory-p function
---
 kiwix.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kiwix.el b/kiwix.el
index f55bab1..17adbde 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -91,7 +91,7 @@
 (defun kiwix-dir-detect ()
   "Detect Kiwix profile directory exist."
   (let ((kiwix-dir (concat (getenv "HOME") "/.www.kiwix.org/kiwix")))
-    (if (file-accessible-directory-p kiwix-dir)
+    (if (and (file-directory-p kiwix-dir) (file-readable-p kiwix-dir))
         kiwix-dir
       (warn "ERROR: Kiwix profile directory \"~/.www.kiwix.org/kiwix\" is not 
accessible."))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]