From 2124a53c621dbcef263c549de1a6769cd054c575 Mon Sep 17 00:00:00 2001 From: Vincent Date: Tue, 17 Jul 2018 17:57:12 +0200 Subject: [PATCH] [fix] ignore config file ending with '~' --- borgmatic/config/collect.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/borgmatic/config/collect.py b/borgmatic/config/collect.py index 02ccc9dc..3cc9699b 100644 --- a/borgmatic/config/collect.py +++ b/borgmatic/config/collect.py @@ -31,6 +31,7 @@ def collect_config_filenames(config_paths): continue for filename in os.listdir(path): - full_filename = os.path.join(path, filename) - if not os.path.isdir(full_filename): - yield full_filename + if not filename.endswith('~'): + full_filename = os.path.join(path, filename) + if not os.path.isdir(full_filename): + yield full_filename -- 2.40.1