openai/codex · error · io::Error
recursive no-follow removal is unsupported
Error message
recursive no-follow removal is unsupported
What it means
Error "recursive no-follow removal is unsupported" thrown in openai/codex.
Source
Thrown at codex-rs/exec-server/src/no_follow/windows.rs:290
open_handle(path, FILE_READ_ATTRIBUTES, FILE_OPEN, FILE_DIRECTORY_FILE)?;
Ok(())
}
Err(error) => Err(error),
}
}
Err(error) => Err(error),
}
}
pub(super) async fn create_directory(path: PathBuf, recursive: bool) -> io::Result<()> {
tokio::task::spawn_blocking(move || create_directory_sync(&path, recursive))
.await
.map_err(|error| io::Error::other(format!("filesystem task failed: {error}")))?
}
fn remove_sync(path: &Path, recursive: bool, force: bool) -> io::Result<()> {
if recursive {
return Err(io::Error::new(
io::ErrorKind::Unsupported,
"recursive no-follow removal is unsupported",
));
}
let metadata = match open_entry(path).and_then(|file| file.metadata()) {
Ok(metadata) => metadata,
Err(error) if force && error.kind() == io::ErrorKind::NotFound => return Ok(()),
Err(error) => return Err(error),
};
let create_options = if metadata.is_dir() {
FILE_DIRECTORY_FILE
} else {
FILE_NON_DIRECTORY_FILE
};
let handle = open_handle(path, DELETE, FILE_OPEN, create_options)?;
let disposition = FILE_DISPOSITION_INFO {
DeleteFile: BOOLEAN_TRUE,View on GitHub (pinned to 339751715c)
When it happens
Trigger: Thrown at codex-rs/exec-server/src/no_follow/windows.rs:290 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of openai/codex@339751715c (2026-08-25).
Data as JSON: /api/errors/6f9e1e8d7b945a35.
Report an issue: GitHub.