فهرست منبع

Add .tgz to the compressed file extensions

Fixes #129
Ben S 9 سال پیش
والد
کامیت
36d9b6844e
3فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 1 0
      Vagrantfile
  2. 1 1
      src/info/filetype.rs
  3. 1 0
      xtests/file-types

+ 1 - 0
Vagrantfile

@@ -90,6 +90,7 @@ Vagrant.configure("2") do |config|
 
         touch "#{test_dir}/file-types/compressed.zip"
         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/#SAVEFILE#"

+ 1 - 1
src/info/filetype.rs

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

+ 1 - 0
xtests/file-types

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