mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-18 05:11:00 +00:00
set result for directories
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1461 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
a2a1429b7e
commit
84b9c1ab2e
1 changed files with 3 additions and 1 deletions
|
|
@ -25,6 +25,7 @@ import urllib
|
|||
|
||||
import urlbase
|
||||
import linkcheck
|
||||
from linkcheck.i18n import _
|
||||
|
||||
# if file extension lookup was unsuccessful, look at the content
|
||||
contents = {
|
||||
|
|
@ -76,7 +77,8 @@ class FileUrl (urlbase.UrlBase):
|
|||
self.url = urlparse.urlunsplit(self.urlparts)
|
||||
|
||||
def check_connection (self):
|
||||
if os.path.isdir(self.get_os_filename()):
|
||||
if self.is_directory():
|
||||
self.set_result(_("directory"))
|
||||
return
|
||||
super(FileUrl, self).check_connection()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue