Skip to main content

read_regular

Function read_regular 

Source
pub fn read_regular(path: &Path, limit: u64) -> Result<Vec<u8>>
Expand description

Reads bundle file path whole: a regular file (not a symlink, a device or a FIFO) of at most limit bytes, so a directory bundle can’t make a reader follow a link to /dev/zero.