summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2015-09-29 15:55:14 -0400
committerSiddharth Ravikumar <sravik@bgsu.edu>2015-09-29 15:55:14 -0400
commitf4af8d7f6f9e70cd209c9bd73b748e08b69260b2 (patch)
treec4de68725d21a8c30b15c2ae2cadaddfc5f019b7
parent54d70dad75387e0369c2b67dacff80d32d3cfc1e (diff)
combox/events.py: fixed tmp_file method.
-rw-r--r--combox/events.py4
1 files 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: