mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-23 23:54:44 +00:00
add trailing directory slash
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1463 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
4e654e327b
commit
01976e953b
1 changed files with 3 additions and 0 deletions
|
|
@ -74,6 +74,9 @@ class FileUrl (urlbase.UrlBase):
|
|||
super(FileUrl, self).build_url()
|
||||
# ignore query and fragment url parts for filesystem urls
|
||||
self.urlparts[3] = self.urlparts[4] = ''
|
||||
if self.is_directory() and not self.urlparts[2].endswith('/'):
|
||||
self.add_warning(_("Added trailing slash to directory"))
|
||||
self.urlparts[2] += '/'
|
||||
self.url = urlparse.urlunsplit(self.urlparts)
|
||||
|
||||
def check_connection (self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue