{"record":{"id":"46870f41b816dc93","repo":"openai/codex","slug":"no-follow-filesystem-operations-require-a-local-di","errorCode":null,"errorMessage":"no-follow filesystem operations require a local disk or UNC path","messagePattern":"no-follow filesystem operations require a local disk or UNC path","errorType":"validation","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/exec-server/src/no_follow/windows.rs","lineNumber":93,"sourceCode":"    ) -> NTSTATUS;\n}\n\nfn nt_path(path: &Path) -> io::Result<Vec<u16>> {\n    if !path.is_absolute() {\n        return Err(io::Error::new(\n            io::ErrorKind::InvalidInput,\n            \"no-follow filesystem operations require an absolute path\",\n        ));\n    }\n\n    let (prefix, source_offset) = match path.components().next() {\n        Some(Component::Prefix(prefix)) => match prefix.kind() {\n            Prefix::Disk(_) => (\"\\\\??\\\\\", 0),\n            Prefix::VerbatimDisk(_) => (\"\\\\??\\\\\", 4),\n            Prefix::UNC(_, _) => (\"\\\\??\\\\UNC\\\\\", 2),\n            Prefix::VerbatimUNC(_, _) => (\"\\\\??\\\\UNC\\\\\", 8),\n            _ => {\n                return Err(io::Error::new(\n                    io::ErrorKind::InvalidInput,\n                    \"no-follow filesystem operations require a local disk or UNC path\",\n                ));\n            }\n        },\n        _ => {\n            return Err(io::Error::new(\n                io::ErrorKind::InvalidInput,\n                \"no-follow filesystem operations require an absolute Windows path\",\n            ));\n        }\n    };\n\n    let mut result: Vec<u16> = OsStr::new(prefix).encode_wide().collect();\n    result.extend(\n        path.as_os_str()\n            .encode_wide()\n            .skip(source_offset)","sourceCodeStart":75,"sourceCodeEnd":111,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/exec-server/src/no_follow/windows.rs#L75-L111","documentation":"Error \"no-follow filesystem operations require a local disk or UNC path\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/exec-server/src/no_follow/windows.rs:93 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":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}