From 5f49a2e8407bba7ca377cbe3bc3891e59e6201b2 Mon Sep 17 00:00:00 2001 From: Izhak Jakov Date: Sun, 22 Aug 2021 21:11:35 -0400 Subject: [PATCH] Add extension ".bkp" as temp file --- src/info/filetype.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/info/filetype.rs b/src/info/filetype.rs index b5a63af..3e62f72 100644 --- a/src/info/filetype.rs +++ b/src/info/filetype.rs @@ -87,7 +87,7 @@ impl FileExtensions { fn is_temp(&self, file: &File<'_>) -> bool { file.name.ends_with('~') || (file.name.starts_with('#') && file.name.ends_with('#')) - || file.extension_is_one_of( &[ "tmp", "swp", "swo", "swn", "bak", "bk" ]) + || file.extension_is_one_of( &[ "tmp", "swp", "swo", "swn", "bak", "bkp", "bk" ]) } fn is_compiled(&self, file: &File<'_>) -> bool {