Add .tgz to the compressed file extensions

Fixes #129
This commit is contained in:
Ben S 2016-10-29 19:28:41 +01:00
parent 9589496aac
commit 36d9b6844e
3 changed files with 3 additions and 1 deletions

1
Vagrantfile vendored
View File

@ -90,6 +90,7 @@ Vagrant.configure("2") do |config|
touch "#{test_dir}/file-types/compressed.zip" touch "#{test_dir}/file-types/compressed.zip"
touch "#{test_dir}/file-types/compressed.tar.gz" touch "#{test_dir}/file-types/compressed.tar.gz"
touch "#{test_dir}/file-types/compressed.tgz"
touch "#{test_dir}/file-types/backup~" touch "#{test_dir}/file-types/backup~"
touch "#{test_dir}/file-types/#SAVEFILE#" touch "#{test_dir}/file-types/#SAVEFILE#"

View File

@ -66,7 +66,7 @@ impl<'a> File<'a> {
pub fn is_compressed(&self) -> bool { pub fn is_compressed(&self) -> bool {
self.extension_is_one_of( &[ self.extension_is_one_of( &[
"zip", "tar", "Z", "gz", "bz2", "a", "ar", "7z", "zip", "tar", "Z", "gz", "bz2", "a", "ar", "7z",
"iso", "dmg", "tc", "rar", "par" "iso", "dmg", "tc", "rar", "par", "tgz",
]) ])
} }

View File

@ -6,6 +6,7 @@ compiled.coffee
compiled.js compiled.js
compiled.o compiled.o
compressed.tar.gz compressed.tar.gz
compressed.tgz
compressed.zip compressed.zip
crypto.asc crypto.asc
crypto.signature crypto.signature