Skip to main content

cat_plain_file

Function cat_plain_file 

Source
pub fn cat_plain_file(path: &Path, out: &mut impl Write) -> Result<bool>
Expand description

Plain cat for a single file — tries zero-copy, then falls back to read/write loop. Note: On Linux, callers that need directory/same-file detection should call cat_plain_file_linux directly to avoid redundant syscalls.