mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Fix #3828 (Error 13, 'Permission denied'))
This commit is contained in:
parent
619a4d6e77
commit
d3b61d9094
@ -409,6 +409,9 @@ class HTMLInput(InputFormatPlugin):
|
|||||||
link = os.path.abspath(link)
|
link = os.path.abspath(link)
|
||||||
if not os.access(link, os.R_OK):
|
if not os.access(link, os.R_OK):
|
||||||
return link_
|
return link_
|
||||||
|
if os.path.isdir(link):
|
||||||
|
self.log.warn(link_, 'is a link to a directory. Ignoring.')
|
||||||
|
return link_
|
||||||
if not islinux:
|
if not islinux:
|
||||||
link = link.lower()
|
link = link.lower()
|
||||||
if link not in self.added_resources:
|
if link not in self.added_resources:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user