Skip to content

Commit

Permalink
Update file monitor to only use "closed" event
Browse files Browse the repository at this point in the history
  • Loading branch information
BlakeGardner authored and Josh5 committed Dec 29, 2023
1 parent 15f7c8d commit 0a4bbdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unmanic/libs/eventmonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def _log(self, message, message2='', level="info"):
getattr(self.logger, level)(message)

def on_any_event(self, event):
if event.event_type in ["created", "closed"]:
if event.event_type == "closed":
# Ensure event was not for a directory
if event.is_directory:
self._log("Detected event is for a directory. Ignoring...", level="debug")
Expand Down

0 comments on commit 0a4bbdb

Please sign in to comment.