MCPcopy Create free account
hub / github.com/Recordscript/recordscript / is_compressed_file

Function is_compressed_file

libs/hbb_common/src/fs.rs:260–271  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

258
259#[inline]
260fn is_compressed_file(name: &str) -> bool {
261 let ext = get_ext(name);
262 ext == "xz"
263 || ext == "gz"
264 || ext == "zip"
265 || ext == "7z"
266 || ext == "rar"
267 || ext == "bz2"
268 || ext == "tgz"
269 || ext == "png"
270 || ext == "jpg"
271}
272
273impl TransferJob {
274 #[allow(clippy::too_many_arguments)]

Callers 1

readMethod · 0.85

Calls 1

get_extFunction · 0.85

Tested by

no test coverage detected