def parseFilePaths(page):
 if page:
  for regex in FILE_PATH_REGEXES:
   for match in re.finditer(regex, page):
    absFilePath = match.group('result').strip()
    page = page.replace(absFilePath, '')
    if isWindowsDriveLetterPath(absFilePath):
     absFilePath = posixToNtSlashes(absFilePath)
    if (absFilePath not in kb.absFilePaths):
     kb.absFilePaths.add(absFilePath)

def parseFilePaths ( page ) : if page : for regex in FILE_PATH_REGEXES : for match in re . finditer ( regex , page ) : absFilePath = match . group ( 'result' ) . strip ( ) page = page . replace ( absFilePath , '' ) if isWindowsDriveLetterPath ( absFilePath ) : absFilePath = posixToNtSlashes ( absFilePath ) if ( absFilePath not in kb . absFilePaths ) : kb . absFilePaths . add ( absFilePath )
detects absolute system paths inside the provided page content .