Skip to main content

read_regular_file_bounded

Function read_regular_file_bounded 

Source
pub fn read_regular_file_bounded(
    path: &Path,
) -> WorktreeResult<(Metadata, Vec<u8>)>
Expand description

Read a regular file without following the final path component on Unix, enforcing MAX_FILE_BYTES against both the opened handle’s metadata and the actual bytes read.