fix for cases where both posix and nt path versions of windows paths are in parsed web page

This commit is contained in:
Miroslav Stampar 2010-02-03 15:34:20 +00:00
parent 894b9f0f80
commit 8b0d31a6b7

View File

@ -81,6 +81,8 @@ def parseResponse(page, headers):
for match in reobj.finditer(page):
absFilePath = match.group("result").strip()
page = page.replace(absFilePath, "")
if re.search("\A[A-Za-z]:", absFilePath):
absFilePath = absFilePath.replace("/", "\\")
if absFilePath not in kb.absFilePaths:
dirname = directoryPath(absFilePath)
kb.absFilePaths.add(dirname)