From f4af8d7f6f9e70cd209c9bd73b748e08b69260b2 Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Tue, 29 Sep 2015 15:55:14 -0400 Subject: combox/events.py: fixed tmp_file method. --- combox/events.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/combox/events.py b/combox/events.py index 21df86e..fcf26fe 100644 --- a/combox/events.py +++ b/combox/events.py @@ -61,9 +61,9 @@ class ComboxDirMonitor(LoggingEventHandler): if file_path.endswith("~"): return True - elif file_path.startswith(".#"): + elif path.basename(file_path).startswith(".#"): return True - elif (file_path.startswith("#") and + elif (path.basename(file_path).startswith("#") and file_path.endswith("#")): return True else: -- cgit v1.2.3