mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-17 12:51:01 +00:00
Check for existance of local files, including directories.
This commit is contained in:
parent
362c7a1d9d
commit
a24ced8b9a
1 changed files with 2 additions and 2 deletions
|
|
@ -256,8 +256,8 @@ to improve %(appname)s even more!
|
|||
elif url.startswith(u"ftp."):
|
||||
url = u"ftp://%s" % url
|
||||
elif url and u":" not in url:
|
||||
# Look for local filename, else assume it's an HTTP URL.
|
||||
if not os.path.isfile(url):
|
||||
# Look for local file, else assume it's an HTTP URL.
|
||||
if not os.path.exists(url):
|
||||
url = u"http://%s" % url
|
||||
return url
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue