Skip to content

Commit

Permalink
Merge branch 'rustdesk:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbo8418 authored Jan 6, 2025
2 parents 3033fc8 + 0dbd309 commit 6b0b5aa
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions libs/hbb_common/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,16 +303,9 @@ fn get_ext(name: &str) -> &str {

#[inline]
fn is_compressed_file(name: &str) -> bool {
let compressed_exts = ["xz", "gz", "zip", "7z", "rar", "bz2", "tgz", "png", "jpg"];
let ext = get_ext(name);
ext == "xz"
|| ext == "gz"
|| ext == "zip"
|| ext == "7z"
|| ext == "rar"
|| ext == "bz2"
|| ext == "tgz"
|| ext == "png"
|| ext == "jpg"
compressed_exts.contains(&ext)
}

impl TransferJob {
Expand Down

0 comments on commit 6b0b5aa

Please sign in to comment.