Function cgl_rs::utils::get_file_size

source ·
pub fn get_file_size(path: &str) -> usize
Expand description

Returns the size of a file in bytes.

Arguments

  • path - The path to the file to get the size of.

Example

let path = "path/to/file";
let size = cgl_rs::utils::get_file_size(path);