Skip to content

Commit

Permalink
Revert "Update file monitor to only use "closed" event"
Browse files Browse the repository at this point in the history
This reverts commit 0a4bbdb.
  • Loading branch information
BlakeGardner authored and Josh5 committed Feb 25, 2024
1 parent c93edde commit d0b4e99
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 == "closed":
if event.event_type in ["created", "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 d0b4e99

Please sign in to comment.