Skip to main content

is_binary_file

Function is_binary_file 

Source
pub fn is_binary_file(path: &str) -> bool
Expand description

Checks if a file path is a binary file that requires LFS upload.

HuggingFace Hub requires binary files to be uploaded via LFS/XET storage. This function detects common binary file extensions.