mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 09:43:48 +02:00
Fix #3828 (Error 13, 'Permission denied'))
This commit is contained in:
parent
619a4d6e77
commit
d3b61d9094
1 changed files with 3 additions and 0 deletions
|
|
@ -409,6 +409,9 @@ def resource_adder(self, link_, base=None):
|
|||
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue