From d3b61d909402f50e493d34ec24387fbd56119049 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 28 Oct 2009 10:25:53 -0600 Subject: [PATCH] Fix #3828 (Error 13, 'Permission denied')) --- src/calibre/ebooks/html/input.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/ebooks/html/input.py b/src/calibre/ebooks/html/input.py index cf9b087295..36e21a0dc8 100644 --- a/src/calibre/ebooks/html/input.py +++ b/src/calibre/ebooks/html/input.py @@ -409,6 +409,9 @@ class HTMLInput(InputFormatPlugin): link = os.path.abspath(link) if not os.access(link, os.R_OK): return link_ + if os.path.isdir(link): + self.log.warn(link_, 'is a link to a directory. Ignoring.') + return link_ if not islinux: link = link.lower() if link not in self.added_resources: