{"record":{"id":"9d2ff6957a2b1271","repo":"sqlmapproject/sqlmap","slug":"the-specified-list-of-targets-is-not-a-file-nor-a","errorCode":null,"errorMessage":"the specified list of targets is not a file nor a directory","messagePattern":"the specified list of targets is not a file nor a directory","errorType":"exception","errorClass":"SqlmapFilePathException","httpStatus":null,"severity":"error","filePath":"lib/core/option.py","lineNumber":269,"sourceCode":"    elif os.path.isdir(conf.logFile):\n        files = os.listdir(conf.logFile)\n        files.sort()\n\n        for reqFile in files:\n            if not re.search(r\"([\\d]+)\\-request\", reqFile):\n                continue\n\n            for target in parseRequestFile(os.path.join(conf.logFile, reqFile)):\n                url, _, data, _, _ = target\n                key = re.sub(r\"(\\w+=)[^%s ]*\" % (conf.paramDel or DEFAULT_GET_POST_DELIMITER), r\"\\g<1>\", \"%s %s\" % (url, data))\n                if key not in seen:\n                    kb.targets.add(target)\n                    seen.add(key)\n\n    else:\n        errMsg = \"the specified list of targets is not a file \"\n        errMsg += \"nor a directory\"\n        raise SqlmapFilePathException(errMsg)\n\n    updatedTargetsCount = len(kb.targets)\n\n    if updatedTargetsCount > initialTargetsCount:\n        infoMsg = \"sqlmap parsed %d \" % (updatedTargetsCount - initialTargetsCount)\n        infoMsg += \"(parameter unique) requests from the \"\n        infoMsg += \"targets list ready to be tested\"\n        logger.info(infoMsg)\n\ndef _adjustLoggingFormatter():\n    \"\"\"\n    Solves problem of line deletition caused by overlapping logging messages\n    and retrieved data info in inference mode\n    \"\"\"\n\n    if hasattr(FORMATTER, '_format'):\n        return\n","sourceCodeStart":251,"sourceCodeEnd":287,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/core/option.py#L251-L287","documentation":"Error \"the specified list of targets is not a file nor a directory\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/core/option.py:269 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}